lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


	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