[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: foreachi and artificial tables
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 8 Aug 1999 08:45:00 -0300 (EST)
>From lua-l@tecgraf.puc-rio.br Sat Aug 7 15:37:39 1999
>From: Mike Goodey <MJGoodey@compuserve.com>
>In my program I have some structures that can best be described as a main
>record and a set of subrecords. I am trying to model this as a lua table,
>using textual indices for the main record fields and numeric indices each
>giving another table representing the subrecord. However, each table is
>actually empty, using tag methods within the C code to actually evaluate
>the index and return the correct value.
could you give more details here?
are you using nil for what you call en empty table or are you using "{}"?
if you're only interested in the set of numeric indices, why not use "1"
to mark presence (and nil for absence)?
--lhf