[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) GOTO
- From: "Michael Rose" <michael.h.rose@...>
- Date: Wed, 15 Jun 2011 17:27:45 +0200 (CEST)
Von: "Pierre-Yves Gérardy" <firstname.lastname@example.org>
Gesendet: 15.06.2011 16:16:10
An: "Lua mailing list" <email@example.com>
Betreff: Re: [ANN] Lua 5.2.0 (beta-rc1) GOTO
>On Wed, Jun 15, 2011 at 14:19, Michael Rose <firstname.lastname@example.org> wrote:
>> @123 "filename"\n
>Good stuff here, but requiring a new line is a bad idea. In some
>cases, the code of different lines in the source file could end up in
>a single line of Lua. I have such a case ion a toy language I'm
>playing with (in which I had already implemented a tail call based
>goto with similar scoping rules as the ones proposed in Lua 5.2 beta
>@123 "filename"@ would not prevent @TK_NAME@ from existing either
>(since the latter cannot start with a digit). BTW, the @TK_NAME@ would
>also be very useful in my case. I currently append a long, random
>string to all identifiers, but it is more a hack than anything else.
In fact in the current implementation '@<digits>' accepts an immediate
newline (in that case the line number is valid for the next line) as well as
a space (in that case the line number is valid for the current line). I just
wanted to be brief. The second '@' for line declarations is not neccessary,
even in the (yet not implemented) case, a quoted string is following the space.
>I also like the statement-expressions idea (but not its syntax... I
>would prefer it in a dark red).
??? A joke I missed?
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar