[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Pre-compiling with luaL_loadbuffer
- From: Tomas <tomas@...>
- Date: Fri, 3 Jun 2005 18:49:47 -0300 (BRST)
Hi Romulo,
On Fri, 3 Jun 2005, Romulo Bahiense wrote:
> There will be a performance penalty if the global table has a __index
> metamethod, and this is the common behaviour for compat-5.1, where each
> lua script has it's own environment with {__index=_G} metatable.
I think there is a misconception here. The behavior stated
above is NOT the common behavior for Compat-5.1 neither for the package
proposal (which is the conceptual model). This behavior is implemented
by the function module().
Regards,
Tomas