Rasmus Lerdorf wrote:
I could see people doing:

  class foo {
    function foo() {
       ...constructor stuff...
    }
    function __construct() {
       $this->foo();
    }
  }

Why not just leave out __construct in this case? Or am I missing something? This looks pretty ugly to me. And if you really, really want it you can still have a method init() which is called by foo() and __construct().


- Chris

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



Reply via email to