[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lists with nil play nice for Lua 5.2
- From: Miles Bader <miles@...>
- Date: Sat, 04 Aug 2007 09:15:17 +0900
roberto@inf.puc-rio.br (Roberto Ierusalimschy) writes:
> Maybe we could store this size in t[0]? (At least it is a numeric key
> ;)
Please don't do that -- Lua's 1-based native indexing already annoys
people, but at least they can sorta work around it if they want by using
a hashed 0-element; it would certainly annoy them even more if 0
suddenly became a weird magic element...
-Miles
--
I'm beginning to think that life is just one long Yoko Ono album; no rhyme
or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff