This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Strange thing in Lua
#2
I've found another similar situation:

I have a custom library 'user.blinds' and when all functions in this library are global then when I require this library in some script I have an access to function dayScene. But after changing a few functions in this library to local variables but not dayScene then in script I cannot reach this function. Only when I do such thing:

Code:
-- GLOBALS in 'user.blinds'
function dayScene()
 execScene()
 alert('day')
end

dayscene = dayScene


And then in script I can reach dayscene function but not dayScene so I see that when there are some local variables in global scope of module then probably all variables are indexed and then camelCase is unfortunately dropped.
Done is better than perfect
Reply


Messages In This Thread
Strange thing in Lua - by buuuudzik - 15.08.2018, 15:51
RE: Strange thing in Lua - by buuuudzik - 30.01.2019, 08:43
RE: Strange thing in Lua - by admin - 30.01.2019, 08:52
RE: Strange thing in Lua - by buuuudzik - 30.01.2019, 09:13

Forum Jump: