Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualOscar1

Posted 15 May 2013 - 05:44 PM

Andreas, the compile worked ok with my Copy(const image @&in), the runtime went into an loop when executing it. I didn't debug it as I knew I was probably doing something I shouldn't.

 

I tried the copyconstructor and it works, but as any other reference input it doesn't accept @ tag which maybe makes the syntax confusing or maybe not... there is something about the object handle syntax I am not 100% comfortable. 


#3Oscar1

Posted 15 May 2013 - 05:18 PM

Andreas, the compile worked ok with my Copy(const image @&in), the runtime went into an loop when executing it. I didn't debug it as I knew I was probably doing something I shouldn't.

 

I tried the copyconstructor and it works, but as any other reference input it doesn't accept @ tag which maybe makes the syntax confusing as the @ tag is used everywhere.

 

So

image@ img = @image(INPUT);
 
image img1(img);
 
is ok
 
but 
image@ img = @image(INPUT);
 
image img1(@img);
 
throws compiler error. Not a biggie I just understood that once object handle, use @ and this sort of makes an exception to the rule because img is handle.
 

#2Oscar1

Posted 15 May 2013 - 05:16 PM

Andreas, the compile worked ok with my Copy(const image @&in), the runtime went into an loop when executing it. I didn't debug it as I knew I was probably doing something I shouldn't.

 

I tried the copyconstructor and it works, but as any other reference input it doesn't accept @ tag which maybe makes the syntax confusing as the @ tag is used everywhere.

 

So

image@ img = @image(INPUT);
 
image img1(img);
 
is ok
 
but 
image@ img = @image(INPUT);
 
image img1(@img);
 
throws compiler error. Not a biggie I just tried to teach users that once object handle, always use @ left or right and this sort of makes it not so.
 

#1Oscar1

Posted 15 May 2013 - 05:03 PM

Andreas, the compile worked ok with my Copy(const image @&in), the runtime went into an loop when executing it. I didn't debug it as I knew I was probably doing something I shouldn't.


PARTNERS