NYCPHP Meetup

NYPHP.org

[nycphp-talk] static methods in derived classes

David Sklar sklar at sklar.com
Thu Sep 23 11:40:16 EDT 2004


csnyder wrote:
> What Adam makes a lot of sense, and it implies that self:: is poorly named. 
> 
> self:: doesn't mean "self", it means "a static instance of this very
> same class".
> 
> I think you mean for a Meal/Lunch instance to chew() its own food,
> which is whacky.

Here's another bug report about the same issue. Since "self" is bound at 
compile time, it can't know about subclasses:

http://bugs.php.net/bug.php?id=29647

David



More information about the talk mailing list