lua-users home
lua-l archive

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


On Thursday 18 May 2006 7:58 am, Luiz Henrique de Figueiredo wrote:
> >      Sure, you'd have to make it accessible from Lua as well, maybe in
> > a global table.
>
> That's dangerous. If you expose the registry, you can turn a udata from
> one type to another. So you could convert a button to a file and then
> call close on it, which will probably crash the host app.

isn't this already possible with setmetatable() ?


-- 
Javier

Attachment: pgpBKFL1oNuZY.pgp
Description: PGP signature