* Thus wrote Zeev Suraski ([EMAIL PROTECTED]): > 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.
This would be nice! Id like to add perhaps, but not sure how hard it would be, to make this constant (aliased define) unchangeable through out the life time of the script. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php