lua-users home
lua-l archive

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


> Actually it is:
>    debug.setmetatable(nil, { __index = {} })
> You could turn this into a function to turn the feature on and off for
> certain sections of code.

Indeed this is a way to do it, but it is rather intrusive :) The fact is that I cannot isolate part of the code need this "safe navigation operator" or not, since it is usually embedded in the code here and there.