

4·
10 days agoSame, except WhatsApp instead of FB Messenger. I had no results trying to convince my family and friends to use other stuff
Just a hobbyist programmer.
Same, except WhatsApp instead of FB Messenger. I had no results trying to convince my family and friends to use other stuff
Supposotory*
if debug.getinfo(1).what == "main" then
-- ...
end
Not that you’ll ever use it. No, seriously.
Edit: actually, they are not quite equivalent. This code just checks whether we are outside any function, not necessarily in the main file (i.e. not in a module). I don’t think there’s an equivalent to Python’s __name__
in stock Lua.
My feed rn: