lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Of course, but this would be a special value of null with the
following two properties (a) if there are any nils in ..., then {...}
will represent these with null (b) next() will return key,nil when it
encounters a (key,null) entry in a table.

On 10/27/07, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> > Another possibility would be to have a special unique non-nil value
> > (call it 'null') which is used to represent any embedded nils in
> > {...}.
>
> You can use null=false or null={} if you must have null.
>