lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Sorry for being unclear. I feel that this would make more sense as two statements than it would as a single (complex) statement.
------Original Message------
From: David Manura
Sender: lua-bounces@bazar2.conectiva.com.br
To: Lua list
ReplyTo: Lua list
Subject: Re: x="abc":upper() v.s. x=("abc"):upper() patch
Sent: Aug 15, 2009 6:50 PM

On Sat, Aug 15, 2009 at 7:39 PM, delbu9c1 wrote:
> On Sat, Aug 15, 2009 at 7:34 PM, delbu9c1 wrote:
>> It seems like you're advocating that the following be ambiguous, if I understand you correctly.
>>
>> Foo = bar
>> "baz":quux()

Yes, that would give an "ambiguous syntax" error under the new
proposal, whereas currently it is interpreted as Foo =
bar("baz"):quux(); .  Alternatives without semicolons include

  Foo = bar "baz"
                 :quux()

Some discussion on semicolons was in [4].

[4] http://lua-users.org/lists/lua-l/2009-02/msg00360.html


Sent from my Verizon Wireless BlackBerry