On 8/01/19 2:29 PM, Stanislav Sokolenko wrote:
> That's perfect, thank you! I did see the cache variable in buff-ini.lua
> but didn't realize it was being used as an upvalue in a closure. Is
> there a specific reason for using the --debug flag rather than just
> loading the debug module directly in the code? The following seems to
> work without the --debug flag but I want to make sure I'm not causing
> some sort of side effect.

Interesting... Actually it should not work, because this way you can
escape the sandboxing.  I guess Hans will fix that in the future, so you
shouldn't rely on that.

@Hans: To disable debug completely you should add
`package.loaded["debug"] = nil` somewhere.

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to