Re: a question about foreach construct
- Posted by elias_maluko Oct 18, 2015
- 1364 views
Foreach in euphoria will work only to read itens from a sequence. Because Euphoria's copy on change, we cant modify the fields of a loop variable:
foreach monster in monsters do monster[X] += 1; --will not work end foreach
So foreach in euphoria is a bit useless...