Closed Wuzzy2 closed 5 years ago
Thanks for the info, but this isn't used in performance-critical code and it is useful for debugging actually.
My point is that debug is called in PRODUCTION code which is a really bad idea. It's not just about performance. Frankly, I trust the Lua developers here more than you. When they say to not use debug
, I will not use debug
. ;-)
Anyway, looks like you only use it for introspection. So that could be replaced with hardcoded strings.
Anyway, I already removed this in my MCL2 fork.
Some items in everyday life are intended for a sole and specific purpose, yet we can sometimes divert them from their original usecase for other purposes for which they are not originally intended.
Same with the code.
This mod calls the
debug
Lua library, which it shouldn't do.https://www.lua.org/manual/5.1/manual.html#5.9