lua-users home
lua-l archive

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


> >           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