lua-users home
lua-l archive

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


> 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