lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi!

I have the following Lua program:

setmetatable({}, {__gc = function() print("Hello") end})

When I run it on my computer, It prints "Hello".
It also prints "Hello" when I run it on most "run Lua code online" websites:
rextester.com, jdoodle.com, tutorialspoint.com, ideone.com

But it prints nothing when I try to run in on www.lua.org/cgi-bin/demo
Why?

-- Egor