[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: setfenv(0,
- From: Wim Couwenberg <debosberg@...>
- Date: Sat, 13 Mar 2004 08:03:53 -0800 (PST)
> > It prints "test" in my Lua 5.0 console...
[...]
> if you wrap the code in a do ... end in the
> interactive interpreter (or load it from a file) it
> will print nil.
Actually I wrapped it in a do ... end block up to the
setfenv call to keep env a local. Then I did the
print... Yes, I have a knack of doing things
differently. :-)
--
Wim
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com