Re: Rob: Out of memory + broken shorthand assignment operators in expressions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Vincent wrote:
> 
> I discovered an issue that has to do with assignment operators 
> failing to work in conditional or loop expressions. My guess 
> is that this been a issue since they were introduced in 
> Euphoria v2.1.

I don't think they fail to work.

If you code

   if x = x + 1 then...

Well, 'x' doesn't equal 'x + 1' so the condition fails.

And coding this:
> if i += 1 then
> end if

is like coding this:

if puts(1,"Hello") then...

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu