[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: I'd give my right arm for a continue statement
- From: Tony Finch <dot@...>
- Date: Fri, 28 Jan 2011 19:35:30 +0000
On Fri, 28 Jan 2011, David Kastrup wrote:
> do 'not?':format() end
>
> Surprisingly, it works only with parens around the string in Lua 5.1,
> but shouldn't it work in 5.2?
No. Statements in Lua can only start with a keyword, a variable name, or
an open round bracket. The left hand side of a prefix expression (function
calls, table indexes) can not be a number or string or table constructor,
amongst other things.
Tony.
--
f.anthony.n.finch <dot@dotat.at> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.
- References:
- I'd give my right arm for a continue statement, Steve Litt
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, HyperHacker
- Re: I'd give my right arm for a continue statement, Michal Kottman
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, Alexander Gladysh
- Re: I'd give my right arm for a continue statement, steve donovan
- Re: I'd give my right arm for a continue statement, Roberto Ierusalimschy
- Re: I'd give my right arm for a continue statement, Greg Falcon
- Re: I'd give my right arm for a continue statement, David Kastrup