-
@etiene_d @LuaLang @moonscript yes, but that only works for chunks; i need it for methods to do something like this: hastebin.com/bofuliwoco.lua It's rather un-idiomatic for vanilla Lua but in Moonscript it makes more sense; here in lapis for example you can scope a DSL with it: leafo.net/lapis/reference/html_generation.html#html-in-actions
-
@etiene_d @LuaLang @moonscript I think in Lua 5.3 you either need to use debug.setupvalue etc. or settle for function() _ENV = mkDSLEnv(_ENV) fancyprint "test" end
-
@etiene_d @LuaLang @moonscript @moonscript wrote this about recreating setfenv, but on first attempt it didn't seem to work in fengari.io leafo.net/guides/setfenv-in-lua52-and-above.html