lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



Lua 5.1 (on windows, if it matters)

z = {}
z.z = {}

works

local z={}
z.z = {}

does not work

stdin:1: attempt to index global 'z' (a nil value)
stack traceback:
        stdin:1: in main chunk
        [C]: ?

What is happening?

Thanks

Klaas