lua-users home
lua-l archive

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


On Mon, Sep 27, 2010 at 8:59 PM, Jonathan Castello <twisolar@gmail.com> wrote:
> 'f' and 'b' respectively. I expect b:baz() to call Bar's baz on b. But
> if I used f.baz(b) instead, I'm actually calling Foo's baz on b.

I thought that was a feature ;)

> lots of closures, yes, but the waste is kept to a minimum. And I like
> the assurance that it can't be circumvented without access to the
> debug table (because I use newproxy() to create the objects, and I put
> data in the userdatum's environment).

I suppose there are situations where you simply cannot trust your
users (or co-workers), but then sandboxing is the way forward.

steve d.