[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: Shorthand for appending to a table (was Re: 5.2 feature list?)
- From: "Dave Nichols" <dave.nichols@...>
- Date: Mon, 11 Sep 2006 18:50:33 +0100
I disagree, why should an integer index be any more significant than a name?
I think a missing index should be a syntax error as it is now.
Use table.insert instead, it defaults to #+1
Tel: 0845 1300 510
Fax: 0845 1300 610
Email Disclaimer: The contents of this electronic mail message and any
attachments (collectively "this message") are confidential, possibly
privileged and intended only for its addressee ("the addressee"). If
received in error, please delete immediately without disclosing its contents
to anyone. Neither the sender nor its management or employees will in any
way be responsible for any advice, opinion, conclusion or other information
contained in this message or arising from it's disclosure.
[mailto:firstname.lastname@example.org]On Behalf Of Alex Queiroz
Sent: 11 September 2006 18:44
To: Lua list
Subject: Re: Shorthand for appending to a table (was Re: 5.2 feature
On 9/11/06, Eric Scouten <email@example.com> wrote:
> In other words, omission of the table index inside the square
> brackets should be expanded to mean the next available integer index.
I like it! I'm also tired of writing t[#t+1] all of the time.