[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc1) now available
- From: Dirk Laurie <dpl@...>
- Date: Tue, 14 Jun 2011 17:48:11 +0200
On Tue, Jun 14, 2011 at 04:43:26PM +0200, Patrick Rapin wrote:
> Now `string` seems to have a metatable, but which doesn't support
> indexing of unknown metamethods.
>
The metatable of `string` is itself. It has a method __index.
You can override __index if you don't like what it does. E.g.:
> string.__index = rawindex
> return getmetatable(string).__call
nil
So it seems to be a feature, not a bug. :-)
Dirk
- References:
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Xavier Wang
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Petite Abeille
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, David Given
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Tomas Guisasola Gorham
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Mike Pall
- Re: [ANN] Lua 5.2.0 (beta-rc1) now available, Patrick Rapin