[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: table insertion [was: Lua 5.1 (work2) now available]
- From: Romulo Bahiense <romulo@...>
- Date: Thu, 04 Nov 2004 20:05:41 -0200
I feel very confortable with the syntax << t = 'newvalue' >>. PHP does
it and it is extremely easy - at least for me.
Other thing I really would love to do, is Lua keep the items in the
// --- Could be a for loop to :)
And an iteration in that table won't always give you in the order they
were pushed: key1 = "val1", key2 = "val2", key3 = "val3", ...
Probably, it has been discussed earlier, but I couldn't find any mail
about it. (maybe if I do a more 'hard' search later... )
ps: I know I could make an integer-indexed table and use others tables
as values to store any data I need to be available in the 'creation order'.