Re: problems with the scoping in eu4
- Posted by coconut Jan 07, 2011
- 2102 views
integer r=5 while r do integer i=0 printf(1,"%d, ",i) i+=1 r-=1 end while
Bill raise a strong point here.
What's the point of beeing able to declare a variable inside a loop construct if its value is reset at each loop cycle?
It would be better to forbid variable declaration inside loop as it was in version 3.x
It is what I suggest concerning variables declarations: a rollback to the situation of version 3.x
And I very like the
exit when condition
this could be added to euphoria 4.x
Jacques