lua-users home
lua-l archive

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



On Aug 21, 2007, at 18:05, Mark Hamburg wrote:

What I'd like to see is support for something like:

    t.foo?.baz

What about:

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

print( t.foo.baz )

> nil