[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: checking userdata type from lua
- From: Javier Guerra <javier@...>
- Date: Thu, 18 May 2006 08:10:38 -0500
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:
pgpjcTsU8x5J7.pgp
Description: PGP signature