This cart defines type = 2 for some reason. Tostr doesn't like that.
https://www.lexaloffle.com/bbs/?tid=34078
What would you expect to happen?
@sparr nothing, tostr should have its own type, in a local variable or something, it shouldn't use the global variable
I never saw this at the time, but the explanation is that type() is a built-in global function, e.g.:
if type(myvar) == "function" then myvar() end
And you're allowed to override built-in global functions.
[Please log in to post a comment]