lua-users home
lua-l archive

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


Naive question, but to be clear (topic was “danger of debug.setlocal”)…

If you run these lines of code at the top of your program…

package.loaded.debug = nil
debug = nil

…then you are safe (from yourself, at least), right?

You could, I suppose, load your own non-standard, standalone external debug module later on, but you couldn’t accidentally (or even deliberately) reactivate the built-in debug library with Lua code alone… could you?