You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect the std.string.monkey_patch() function to muck with the default string functions. I hate it, but I expect it.
I just bumped into a project where removing the monkey patch and using std.string() for all function calls that expect the relevant stdlib patched behavior still works completely differently (and crashes).
It turns out running the monkey patch function also changes other core Lua functions including reversing the default output of pairs().
(And yes I realize Lua doesn't guarantee table iteration order anyway so there are other bugs involved in my project, but it's hard to cleanup and test when dependencies cause undocumented side effects.)
Activity
alerque commentedon Apr 21, 2022
(And yes I realize Lua doesn't guarantee table iteration order anyway so there are other bugs involved in my project, but it's hard to cleanup and test when dependencies cause undocumented side effects.)