[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Globals (more ruminations)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 15 Jul 2010 11:33:30 -0300
> How would code access globals like math, io, etc? These would have to
> be predeclared up front?
In my proposal, only assignment to globals would be restricted. Access
would be always free.
> How are module imports handled - does the semantics of require() change?
Not at all. "global" would only restrict the use of the syntax sugar
"x" for "_ENV.x". It would be only a "meta sugar".
-- Roberto
- References:
- Re: Globals (more ruminations), Geoff Leyland
- Re: Globals (more ruminations), Alexander Gladysh
- Re: Globals (more ruminations), Roberto Ierusalimschy
- Re: Globals (more ruminations), Juri Munkki
- Re: Globals (more ruminations), Roberto Ierusalimschy
- Re: Globals (more ruminations), Patrick Donnelly
- Re: Globals (more ruminations), Jim Whitehead II
- Re: Globals (more ruminations), Patrick Donnelly
- Re: Globals (more ruminations), Roberto Ierusalimschy
- Re: Globals (more ruminations), steve donovan