|
Example: local t={}setmetatable(t,{__call=t})() This causes an infinite loop in the latest Lua version (5.4.3).
I don't get an infinite loop when executing the example code, instead I get: ./lua: test.lua:1: stack overflow stack traceback: test.lua:1: in main chunk [C]: in ?Since every call in the cain will push one value to the stack this should happen every time eventually.
Regards, Xmilia