Re: tables holding nil
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: tables holding nil
- From: Cosmin Apreutesei <cosmin.apreutesei@...>
- Date: 2009年7月23日 02:25:12 +0300
> If nil is allowed as a table key, then next() would have to use some
> other value for the beginning and end of a table.
Actually, I never liked the fact that nil is used to signal the end of
an iteration. Whenever I build an iterator that might return nil
elements, I have to put a pseudo-index as the first return value of
the iterator as a workaround.