Re: Re: new overloading feature?
| From: | Alex Knaub | Date: | Tue, 10 May 2005 16:33:55 +0000 |
| Subject: | Re: Re: new overloading feature? | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-16205@lists.php.net to get a copy of this message | ||
2005/5/10, Sebastian Bergmann <sb@sebastian-bergmann.de>:
> Lukas Smith wrote:
> > http://bugs.php.net/bug.php?id=30235
>
> I agree with Marcus: self is bound at runtime, so the behaviour is
> correct. If you do not like this late binding just do not use self but
> the name of the class.
I don't agree with Marcus. Singleton or the name of the class are ugly
workarounds for this bug. Every genuine OOP and dynamic language
(ObjC, Ruby, Smalltalk) bounds self at runtime.