at 2007-03-29
in Further reading
by friebe
(0 comments)
Nice to see other folks are adapting the static initializer idea. Too bad the PHP folks won't.
Example:
<?php class Console extends Object { public static $out, $err= NULL; static function __static() { self::$out= new OutputStream(STDOUT); self::$err= new OutputStream(STDERR); } } ?> This was originally described in the XP Framework's RFC #0002 as early as November 2003
|
Subscribe
You can subscribe to the XP framework's news by using RSS syndication.
CategoriesNews General PHP5 Announcements RFCs Further reading Examples Editorial EASC Experiments Unittests Databases
RelatedFind related articles by a search for «Static».
|