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