Re: problems with the scoping in eu4
- Posted by bill Jan 09, 2011
- 1770 views
Matt:
You are right, if you had read my last post you would have read this:
Re my original post: The issue about not being able to use:
for i = ... end for for i = ... end for
[added eucode tags: SDP]
seems to be some kind of problem with the interpreter and (perhaps) the OS. The problem wasn't there today when I ran equivalent code, but today I had a strange thing happen:
The code it apparently objected to was
printf("a: %s\n",a)
. OK it was wrong and it told me so - but then I found my PATH variable was mutilated.
It wasn't dreadful. I didn't lose my session or anything - but when I started a new xterm the history didn't have anything from that session. Strange.
I don't know what the error was that gave me the cannot redefine message. It is possible I was mistaken (It was one among a number of tests I was running).
The problem today is also hard to explain. I note that someone on the site asked whether Euphoria might have done a setenv and this was denied. The problem I encountered could have been related as in slackware . is not in the system path - it is in the user path. Apart from anything else which might have been wrong after the error the session could not find /Desktop/euphoria/bin.
Please, do not take these as personal criticisms. It was easy to believe the for loop thing given the other issues. I am not sure that it wasn't a Euphoria error but it clearly wasn't simply a redefine error.