At 20:40 23/08/2003, l0t3k wrote:
Zeev,
   speaking of const, i have a feature request. why not accept "const" in
the global context and create a compile-time global constant ?
e.g.

    const FOO = 1 ;
    const BAR = 2;

    class Barbara {
        const Barbara::BUSH = FOO;
    };

i'd much prefer this as an alternative to the runtime define().

It's going to be runtime either way, because you could do if (...) { const FOO = 1; } else {const FOO = 2 }. Not sure if we want it as syntactic sugar for define() or not.


Zeev


-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to