lua-users home
lua-l archive

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


> It prints "test" in my Lua 5.0 console...  Is this a
> snippet of a larger script (with some local key)?

i think the reason it works in this case is that in
the interactive interpreter each line is a separate
chunk.  if you wrap the code in a do ... end in the
interactive interpreter (or load it from a file) it
will print nil.