lua-users home
lua-l archive

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


On Jan 14, 2011, at 5:58 AM, Javier Guerra Giraldez wrote:

> On Fri, Jan 14, 2011 at 5:29 AM, Jonathan Castello <twisolar@gmail.com> wrote:
>> a
>> relatively clunky local table where the keys are objects and the
>> values are the private data.
> 
> i do that all the time, works great.
> 
> the best part is that i don't have to worry about different private
> 'annotations' colliding with each other

And it's almost secure. next and pair do make the keys discoverable...

I've been doing this a lot too. I probably need to look into getting our debugger extended to provide names for items keyed this way.

Mark