> > This way (writing __thisclass::MYCONST instead of MyParticularClassName::CONST > > we could freely decide to favor clean style, or performance, depending on the > > specific > > situation. > > No need for that we have 'self': > php -r 'class c { const c="Hello\n"; static function f() { return self::c; }} echo > c::f();'
Yoohoo!!! Wonderful, thanks! :) (Dunno how I could miss this, but who cares now that PHP is PERFECT... :) ) Cheers, Lunatic -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php