Re: coding recommendations
| From: | Mika Tuupola | Date: | Sun, 26 Jan 2003 02:01:29 +0000 |
| Subject: | Re: coding recommendations | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-12753@lists.php.net to get a copy of this message | ||
On Sun, 26 Jan 2003, Krystof Slaby wrote:
> 2)
> why there's no recommendation for constructor to return error code (pear error)
> based on successfullness of initialization ?
Constructor can't return anything else than an instance of
itself. Or actually it could, but that was considered a bug
not a feature. IIRC this behaviour was fixed in PHP 4.3.0.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/