[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Table declaration problem
- From: David Jeske <jeske@...>
- Date: Sun, 21 Dec 1997 21:13:53 -0800
On Sun, Dec 21, 1997 at 11:57:19PM -0200, Luiz Henrique de Figueiredo wrote:
> since 2.5 you can write:
>
> a_table = { [1]="test" ; ["1"] = "test string" };
Why does the syntax enforce numbered items before string items though? It
seems with the syntax you present above, there would be no confusion, even
when alternating numbered and string entries, for example:
a_table = { [1] = "test number 1",
["1"] = "test string 1",
[2] = "test number 2",
["2"] = "test string 2" };
--
David Jeske (N9LCA) + http://www.chat.net/~jeske/ + jeske@chat.net