Re: by-ref return & inheritance

From: Date: Fri, 08 Aug 2008 22:16:29 +0000
Subject: Re: by-ref return & inheritance
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-39780@lists.php.net to get a copy of this message
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? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#39780) next »