- Subject: Re: [slang-users] Bug in slsh
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Fri, 8 Jul 2005 09:39:05 -0400
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]