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...
[...]
> 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