lua-users home
lua-l archive

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


> > It will still change the environment of its caller, but for
> > compatibility only. This will be a documented compatibility behavior,
> > because it affects new code. (Outside the "in module() do ... end" you
> > will still be inside the module...)
> 
> I guess someone will be surprised by this then:
> 
>   in module("foo") do
>     ...
>   end
>   print() -- Fails rather unexpectedly.

That it was I meant by "it affects new code".

-- Roberto