Hello Melvyn,

Wednesday, July 16, 2003, 12:00:43 PM, you wrote:

MS> Hi again,


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.

The one thing i can think of is that you try to overcome th oo principle of
'is-a' what is a bad idea. I think you need to use 'has-a' instead.

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. Well we don't have aggregation any longer with
php5 and we don't have delegation at all. Maybe that is your real problem.

-- 
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