Re: Class Posing
| From: | Marcus Boerger | Date: | Wed, 03 Oct 2007 15:00:09 +0000 |
| Subject: | Re: Class Posing | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32594@lists.php.net to get a copy of this message | ||
Hello Arne,
yep, those are the tricky parts. I would pea for having final respected.
For private we need to investigate further.
marcus
Wednesday, October 3, 2007, 4:21:40 PM, you wrote:
> On Wed, 2007-10-03 at 07:24 +0200, Sebastian Bergmann wrote:
>> 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.
> That will conflict with your previous statement, that one can "override"
> final classes. And it will cause serious trouble with anything marked
> private in the original class. Or won't it?
> CYA Arne
Best regards,
Marcus