Re: A bug in the interpreter
Daryl Border wrote:
>
> I was experimenting with some code recently, when I discovered a bug in the
> parser.
> The following code will parse without complaint, but does not work properly.
>
> include get.e
> integer ch
>
> for n = 1 to 10 do
> if 4 < n < 8 then
> ? n
> end if
> end for
>
> ch = wait_key()
>
In Euphoria, you have to do it this way:
if 4 < n and n < 8 then
-=ck
"Programming in a state of Euphoria."
http://www.cklester.com/euphoria/
|
Not Categorized, Please Help
|
|