Original date:2015-11-12 09:53:08 Edited by: petelomax Subject: Re: Euphoria's inconsistent typing

SDPringle said...
rgb foo = {2,4,5} 
sequence goo = foo -- okay 
foo = goo -- error. 

Can you post a better example than that, because it shouldn't generate a run-time error and it shouldn't generate a compile-time error.

The thing is, you've just told the compiler that goo is an rgb, and indeed it is an rgb.

If you're thinking that you can only put an rgb in a variable declared as rgb in another variable declared as rgb, then we have a big problem: once you put anything into a sequence, you have no way to ever get it back out.


Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu