[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Globals (more ruminations)
- From: Doug Currie <doug.currie@...>
- Date: Wed, 21 Jul 2010 17:38:19 -0400
On Jul 21, 2010, at 5:20 PM, HyperHacker wrote:
> Well that eliminates the need for a long list of "local x, y, z = G.x,
> G.y, G.z" in Stuart's example; instead of e.g. "local math = G.math"
> you can access math through package.loaded, so maybe set it as a
> fallback __index for G. Notably print isn't in there though...
$ lua
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> package.loaded._G.print("foo")
foo
>
e
- References:
- 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), Roberto Ierusalimschy
- Re: Globals (more ruminations), Edgar Toernig
- Re: Globals (more ruminations), David Manura
- Re: Globals (more ruminations), David Manura
- Re: Globals (more ruminations), Stuart P. Bentley
- Re: Globals (more ruminations), Roberto Ierusalimschy
- Re: Globals (more ruminations), Stuart P. Bentley
- Re: Globals (more ruminations), HyperHacker
- Re: Globals (more ruminations), Matthew Wild
- Re: Globals (more ruminations), HyperHacker