Re: $this scope (was T_PAAMAYIM_NEKUDOTAYIM)
| From: | Andi Gutmans | Date: | Wed, 18 Dec 2002 05:21:39 +0000 |
| Subject: | Re: $this scope (was T_PAAMAYIM_NEKUDOTAYIM) | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-92571@lists.php.net to get a copy of this message | ||
At 11:26 AM 12/17/2002 +0800, Alan Knowles wrote:
It would be usefull to have a direction on this, - It's come up a number of times in bug reports. It has a number of uses (primarily breaking large classes up, into smaller components..), and a clearer way to write code than using a huge inheritance tree.. - It may not be correct OO code, by the book, but it is usefull in certian situations. It can be regarded as a feature, but if it is going to change at some point in the future, it's better to make that very clear now, rather than get a big backlash when we change it, and more people have worked out this little trick.... (and start to rely on it...) Technically I guess overload is the real way it should be done in ZE2.....It should be documented that this behavior shouldn't be relied on. There's a good chance that this will change in ZE2. It has always been considered a bug and not a feature. Andi