Re: Re: Static weirdness..
| From: | John Coggeshall | Date: | Wed, 18 Feb 2004 17:33:35 +0000 |
| Subject: | Re: Re: Static weirdness.. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7963@lists.php.net to get a copy of this message | ||
On Wed, 2004-02-18 at 12:30, Pierre-Alain Joye wrote:
> We are talking about the same thing. A notice (error sounds too
> drastic here) should be raised if a static method is called from the
> instanciated object.
No. There is *no* reason why static methods should be called from an
object context. Doing so is more than a notice -- its flat out wrong and
defeats the entire purpose of having static in the first place...
John
--
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-
John Coggeshall http://www.coggeshall.org/
The PHP Developer's Handbook http://www.php-handbook.com/
-=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-