lua-users home
lua-l archive

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


On 2010-01-09, steve donovan <steve.j.donovan@gmail.com> wrote:
> On Sat, Jan 9, 2010 at 3:26 PM, Leo Razoumov <slonik.az@gmail.com> wrote:
>  > in {x = 1, y = 10, print=print} do print(fn()) end  -- 11
>
>
> Afraid not!
>
>  > in {x=1,y=10,print=print,fn=fn} do print(fn()) end
>  [string "return x + y"]:1: attempt to perform arithmetic on global 'x'
>  (a nil value)
>

Then I want my setfenv back!! And I mean it!!

--Leo--