[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: global
- From: Tomas <tomas@...>
- Date: Fri, 19 Apr 2002 14:26:29 -0300 (BRT)
> > I suppose for me the ideal would be an explicit global declaration
> > and local-by-default behaviour.
> This is much like it is done in PHP, and I also would prefer
> something like this.
But in PHP you have access to all functions and (I think)
you can't define a function inside another function...
> On top of that, a 'global x' keyword could be allowed as
> syntactical sugar for 'x = globals.x'.
But then how would you update the value of 'x'?