lua-users home
lua-l archive

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


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

Regards,

Dave Nichols
Match-IT Limited
Tel: 0845 1300 510
Fax: 0845 1300 610
mailto:dave.nichols@make247.co.uk
http://www.make247.co.uk

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.


-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br
[mailto:lua-bounces@bazar2.conectiva.com.br]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
list?)


Hallo,

On 9/11/06, Eric Scouten <scouten@adobe.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.

--
-alex
http://www.ventonegro.org/