[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Globals (more ruminations)
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 15 Jul 2010 14:52:31 +0200
On Thu, Jul 15, 2010 at 2:34 PM, Jim Whitehead II <jnwhiteh@gmail.com> wrote:
> When Roberto introduced this, he said that the checking wouldn't be
> turned on until the keyword was used (or some other trigger happened).
That feels awkward. This is more a job for an explicit up-front
pragma (OPTION EXPLICIT, anyone? ;))
'global function' feels over-verbose as well. To be consistent:
global function alice()
global fred
fred()
end
global function fred()
...
end
The 'global fred' forward declaration is a nice bit of documentation, however
steve d.
- References:
- Re: Globals (more ruminations), Jim Jennings
- Re: Globals (more ruminations), Mark Hamburg
- Re: Globals (more ruminations), Roberto Ierusalimschy
- 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