On 10/26/12 6:37 AM, Clint Priest wrote:
https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented/change-requests
------------------------------------------------------------------------
Some people are in favor of the internal functions being generated by an
accessor
declaration should be invisible and non-callable directly. Others are in favor
of leaving
them visible and callable.
If we leave them callable,
* What would be the effects of users defining the "internal" methods (in both cases of
if/if not the accessor is also defined)? Considering current magic methods are
*purposefully designed* to be implemented by the user, I expect users to try this and, if
it works, release code with it.
* I assume one could use them as regular methods?
* call_user_func([$foo, '__getpropName']);
* $foo->{"__get$propName"}
I apologize if these were already covered.
Steve Clay
--
http://www.mrclay.org/
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php