Re: Lua Virtual Environment
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua Virtual Environment
- From: Tomas <tomas@...>
- Date: 2004年7月20日 11:35:15 -0300 (BRT)
> > local result = {f(unpack(arg))}
> > setfenv(0, currg)
> > return unpack(result)
>
> This doesn't do what it's supposed to. See
Yes, I'm sorry. I've just corrected it:
diff -r1.3 venv.lua
22a23,24
> local function pack (...) return arg end
>
146c148
< local result = {f(unpack(arg))}
---
> local result = pack (f(unpack(arg)))
Thanks,
Tomas