Re: problems with the scoping in eu4

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu