Re: Class Posing
| From: | Sebastian Bergmann | Date: | Wed, 03 Oct 2007 05:24:22 +0000 |
| Subject: | Re: Class Posing | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32582@lists.php.net to get a copy of this message | ||
Stanislav Malyshev schrieb:
> Thanks, will look at these. I'm extremely uncomfortable with engine
> change that would allow "new Foo" produce an object that is not Foo.
The restriction
"A class may only pose as one of its direct or indirect superclasses."
I mentioned ensures that "new Foo" can only produce objects that are in
an is_a relationship with Foo.
--
Sebastian Bergmann http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69