Re: by-ref return & inheritance
| From: | Stanislav Malyshev | Date: | Fri, 08 Aug 2008 23:50:33 +0000 |
| Subject: | Re: by-ref return & inheritance | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-39787@lists.php.net to get a copy of this message | ||
Hi!
I know that we don't like to add new magic methods, but this case seems to require new ones. What's about __getByRef (and its setter equivalent if it is also not supported yet)?Why would we need that? We already have perfectly good __get, which can perfectly return by-ref. The question is only if we allow override __get that was declared by-val with __get that is declared by-ref. As for __set, __set doesn't return anything at all, so it's not very relevant anyway. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com