[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Representing XML in tables
- From: "Andy Stark" <astark@...>
- Date: Fri, 04 Jul 2003 16:58:07 +0100
drj:-
>Unluckily you chose the one value that cannot be used to index a table.
>nil cannot be used to index a table.
Note to self... check reference manual before posting...
>But you could create a nonce and use that. Something like:
>tag = function()end
>or (more profligately?)
>tag = {}
These will certainly work but we would ideally want a value that can be
quoted as a literal; the literal should be a nice, short token if
possible. The "{}" is certainly short, but do all empty tables have the
same hash value? (Possibly, but it is not obvious).
How about the boolean "true" value?
&.