I am making an application where I am embedding Lua as a scripting language. Currently I am using MoonSharp to do this, but I was wondering what Windower was using. I noticed some syntax differences around calling a function on an undefined variable. For MoonSharp and even the demo Lua website https://www.lua.org/cgi-bin/demo the following syntax fails
print( "%s":format(tostring(3)) )
but this code works fine in a Windower addon.
if I add parenthesis around the undeclared variable it works fine
print( ("%s"):format(tostring(3)) )
So I was just wondering if this is because of the Lua interpreter Windower is using, or if there is some quick way to change my sandbox?