[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 25 Feb 2010 16:16:21 -0300
> [...]. Also, Roberto mentioned this earlier in the
> thread:
>
> > _ENV = module "libraryname"
>
> ...so presumably every Lua module will need to be changed like this
> before it will work in 5.2. Unless of course module() will still
> change _ENV in the calling script through some trickery?
The idea is that, in "compatible mode", 'module' should use the debug
API to change the _ENV of the caller.
-- Roberto
- References:
- Re: a new proposal for environments, Roberto Ierusalimschy
- Re: a new proposal for environments, Tony Finch
- Re: a new proposal for environments, Luiz Henrique de Figueiredo
- Re: a new proposal for environments, Peter Cawley
- Re: a new proposal for environments, steve donovan
- Re: a new proposal for environments, Peter Cawley
- Re: a new proposal for environments, Roberto Ierusalimschy
- Re: a new proposal for environments, David Kastrup
- Re: a new proposal for environments, Enrico Colombini
- Re: a new proposal for environments, Duncan Cross