slang-users mailing list

[2005 Date Index] [2005 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [slang-users] Bug in slsh


Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>'!if (s[1]) message("foo")' needs _two_ semicolons.
>
>slsh> !if (s[1]) message("foo");;
>foo
>slsh> !if (s[1]) message("foo");
>       
>       ;
>foo

It is not really a bug.  The parser is waiting for the next token,
which could be an "else", in order to complete the statement.

--John

_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html


[2005 date index] [2005 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]