Re: [Zend Engine 2] Re: [PEAR-DEV] Re: namespaces?

From: Date: Sun, 15 Jul 2001 12:37:41 +0000
Subject: Re: [Zend Engine 2] Re: [PEAR-DEV] Re: namespaces?
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-773@lists.php.net to get a copy of this message
At 15:07 15/7/2001, Tomas V.V.Cox wrote:
- The ability to call a parent method without loosing the object, so instead of parent::method() do for ex: parent->method().
You do *not* lose the object by calling parent::method(). Never did, never will :)
- Return in constructors. For me seems a little bit silly the need off providing an extra method to do the work and get the error back. $foo = new bar(); $err = $foo->build(); //or something similar if (PEAR::isError($error)) { .. } while you could simply do: $foo = new bar(); // or perhaps something like $foo = new::bar(); if (PEAR::isError($foo)) { .. }
That's been discussed and rejected numerous times in the past... Look it up in the php-dev archives. Zeev

« previous php.pear.dev (#773) next »