[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: defining tables
- From: Steve Dekorte <steve@...>
- Date: Thu, 29 Nov 2001 01:08:28 -0800
One of the greatest things about lua to me is the ease of defining data
structures.
But there are a few things I wish I could do.
t = { 1 = "b" }
t = { "a" = "b" }
t = { [[a]] = "b" }
these all fail even though these work:
t[1] = "b"
t["a"] = "b"
t[[[a]]] = "b"
Would it be difficult to get {} table definitions to support these
indices types?
Steve