[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string[], doesn't exist?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 21 Jun 2006 15:13:12 -0300
> getmetatable() works on any object, but setmetatable() only works on
> tables?
Yes, for security, specially for userdata. Otherwise you could turn arbitrary
things into file handles, thus probably crashing the host app. --lhf
- References:
- Re: Bitwsie operators in Lua, Sam Roberts
- Re: Bitwsie operators in Lua, Andy Stark
- Re: Bitwsie operators in Lua, Doug Rogers
- Re: Bitwsie operators in Lua, Andy Stark
- Re: Bitwsie operators in Lua, Roberto Ierusalimschy
- string[], doesn't exist?, Sam Roberts
- Re: string[], doesn't exist?, Luiz Henrique de Figueiredo
- Re: string[], doesn't exist?, Sam Roberts
- Re: string[], doesn't exist?, Diego Nehab
- Re: string[], doesn't exist?, Sam Roberts