[slang-users] Bug in slsh

John E. Davis davis at space.mit.edu
Fri Jul 8 09:39:05 EDT 2005


Joerg Sommer <joerg at alea.gnuu.de> 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




More information about the slang-users-l mailing list