Hello Melvyn,

Wednesday, July 16, 2003, 12:44:32 PM, you wrote:

MS> Hi Marcus,

MS> On Wednesday 16 July 2003 12:14, Marcus Börger wrote:

>> MS> Since PHP5 should also give a boost to PECL, I think there should be a
>> way to MS> extend a C-based class, somehow. I really don't favor the $this
>> assignment as MS> well, but what other option is there? Or is this
>> specifick for the way the MS> domxml module is setup, and people shouldn't
>> write their classes like that?
>>
>> I really can't follow you...it's all to weird.
>> anyway maybe you have a problem with the domxml class. Maybe you don't
>> understand oo at all, i don't know.

MS> There are surely things I don't understand, but this isn't one of them.

>> The one thing i can think of is that you try to overcome th oo principle of
>> 'is-a' what is a bad idea.

MS> Yep, that's exactly what I was trying to do. A shame you feel it's a bad idea, 
MS> as it allows code to remain dynamic.

>> class bla {
>>   prublic $dom;
>>   function __construct() {
>>     $dom = new ....
>>   }
>> }
>>
>> and then youse proxies. As i can read in your comments it seems you to lazy
>> to write the necessary proxies.

MS> Lazyness is one motivation I won't deny. Another is excessive code - it seems 
MS> like a complete waste to me. A third is, it won't be forwards compatible. I 
MS> will have to sync the proxies, with whatever methods are added/changed on the 
MS> original object.

In this case:
a) Overcoming 'is-a' is no option at all.
b) Propably we have to discuss aggregation/delegation once again. Feel free to
   do a RFC on those.

-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]


-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to