Hello Stanislav, Saturday, August 9, 2008, 12:16:29 AM, you wrote:
> Hi! >> I think we may want to stick to our is-a mantra. > I'm not sure I understand what you mean here. But our principle was to > allow things that do not violate the LSP - such as adding optional > parameters, for example. I think returning by-ref can be allowed on the > same principle. Is there any problem with allowing it that you see? Yes, it breaks the principle. E.g. caller knows callee returns by ref - you break this, as easy as that. Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php