Take the following simple program:
local s = os.clock()
local os, v = application:getDeviceInfo()
print(os, v, s)
If I run this, it works. However, if I reverse the first two lines like so:
local os, v = application:getDeviceInfo()
local s = os.clock()
print(os, v, s)
I get the following error:
main.lua:2: attempt to call field 'clock' (a nil value)
stack traceback:
main.lua:2: in main chunk
At least the workaround turned out to be simple enough since I didn't need to execute the two lines in that order, but is this a bug in Gideros?
Comments
https://sites.google.com/site/xraystudiogame
io, os, string, math, table, print, pairs, ipairs, require
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975