lua-users home
lua-l archive

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



On Jun 11, 2007, at 19:22, Timon Christl wrote:

Note that the manual says the metatable for
non-table values can only be changed in C code.

Or through the debug module:

debug.setmetatable( nil, { __index = function( self, aKey ) return aKey end } )

print( ( nil ).dwim )

> dwim