[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setmetatable vs setfenv consolidation? (was Re: setmetatable vs debug.setmetatable?)
- From: PA <petite.abeille@...>
- Date: Fri, 3 Aug 2007 18:07:40 +0200
On Aug 03, 2007, at 15:18, Stefan Brantschen wrote:
-- metatable: place to redefine behavior
-- environment: global storage space
environment: metatable.__index ?
Same difference, no?
IMHO, I'd think less about how to change Lua, but how to use what's
available... :-)
Good point, good point, I shall ponder that wisdom :)
That said, in the case of environment vs. metatable, there is perhaps
too many ways to express the same thing?
In any case, going back to my cave :P
Cheers,
PA.