Re: [PATCH] 'const' in global scope

From: Date: Tue, 08 Apr 2003 19:20:58 +0000
Subject: Re: [PATCH] 'const' in global scope
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-807@lists.php.net to get a copy of this message
On Tue, 2003-04-08 at 15:44, Chris Vandomelen wrote: > In tune with the current 'const' patches by Sterling, and because I found > it useful (and more consistent than the original behaviour IMHO), attached > is a patch which implements compile-time constants in the global scope: > > <?php > > const something = 2, something_else = 4; > > ?> > > The behaviour is the same as define(), only implemented in the compiler > instead of as a function. > You'll want to use static_scalar_expr when applied with my patch. -Sterling > Chris > > ______________________________________________________________________ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php -- "Programming today is a race between software engineers stirring to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Unknown

« previous php.internals (#807) next »