[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setfenv(0,
- From: Taj Khattra <taj.khattra@...>
- Date: Fri, 12 Mar 2004 09:50:32 -0800
> 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.