lua-users home
lua-l archive

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

Roberto wrote:

You can achive this by setting an __index metamethod for
nil, but you will have to set it through C.

Or with the debug library:

 Lua 5.1.1  Copyright (C) 1994-2006, PUC-Rio
 > debug.setmetatable(nil, {__index = function() return nil end})
 > print(

Beginning Lua Programming: