Re: Inheritance, constructor, destructor etc

From: Date: Mon, 03 Sep 2001 15:43:13 +0000
Subject: Re: Inheritance, constructor, destructor etc
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-1768@lists.php.net to get a copy of this message
Quoting Stig Sæther Bakken <ssb@alltheweb.com>: > What you're really asking for is that every class should have a > constructor, or at least every class that is supposed to be > "instanciable". I think that's reasonable. "Every class that is not static should have a constructor" is a reasonable statement, and I think it should be a goal. > But until the PEAR class is rewritten in C, bundled with PHP and > statically linked in every build (this is the plan), I really want to > avoid forcing people to inherit the PEAR class. Encouraging is > okay. :-) ... There is no reason to say that every class should inherit from the PEAR class. If we really want every class to inherit from a base class, then that base class shouldn't have error handling methods - they should be in a seperate PEAR_ErrorTrigger class (or similar). And yes, the base classes would need to be in C and always present if that was a requirement. -chuck -- Charles Hagenbuch, <chuck@horde.org> Some fallen angels have their good reasons.

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