[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lists with nil play nice for Lua 5.2
- From: Mark Hamburg <mhamburg@...>
- Date: Tue, 31 Jul 2007 18:55:42 -0700
on 7/30/07 8:19 AM, Jerome Vuarand at jerome.vuarand@ubisoft.com wrote:
>> __len??
>
> I thought so initially, but it's not overridable for tables :-)
I got burned by that a while ago when I wanted to create an array that
actually did data lookup to fetch the members but would not hang onto that
data afterward. Code that used # wouldn't work. We ended up resorting to
interposing a userdata.
Mark