lua-users home
lua-l archive

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


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