[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 14:57:41 -0300
> I guess strings have metatables, but numbers don't?
Yes. Number *can* have metatables, but none is set by default.
I'm not sure you'd want to write 42:sin or 42:abs, but you could by setting
the metatables of numbers to be math. (You'd have to do it in C.)
--lhf
- References:
- Bitwsie operators in Lua, mike krimerman
- Re: Bitwsie operators in Lua, Gavin Wraith
- 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