Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3443 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86821 invoked from network); 16 Jul 2003 10:44:35 -0000 Received: from unknown (HELO morpheus.webteckies.org) (24.132.35.224) by pb1.pair.com with SMTP; 16 Jul 2003 10:44:35 -0000 Received: from ghost.lan.webteckies.org (ghost.lan.webteckies.org [192.168.1.10]) by morpheus.webteckies.org (Postfix) with ESMTP id 46397107C6; Wed, 16 Jul 2003 12:44:17 +0200 (CEST) Organization: Php.net To: Marcus =?iso-8859-15?q?B=F6rger?= Date: Wed, 16 Jul 2003 12:44:32 +0200 User-Agent: KMail/1.5.2 Cc: Php Dev References: <3F147B5D.5070406@chiaraquartet.net> <200307161200.43568.msopacua@php.net> <69318462.20030716121407@post.rwth-aachen.de> In-Reply-To: <69318462.20030716121407@post.rwth-aachen.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200307161244.32713.msopacua@php.net> Subject: Re: [PHP-DEV] $this assignment and call_user_func question From: msopacua@php.net (Melvyn Sopacua) Hi Marcus, On Wednesday 16 July 2003 12:14, Marcus B=F6rger 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. 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. Yep, that's exactly what I was trying to do. A shame you feel it's a bad id= ea,=20 as it allows code to remain dynamic. > class bla { > prublic $dom; > function __construct() { > $dom =3D new .... > } > } > > and then youse proxies. As i can read in your comments it seems you to la= zy > to write the necessary proxies. Lazyness is one motivation I won't deny. Another is excessive code - it see= ms=20 like a complete waste to me. A third is, it won't be forwards compatible. I= =20 will have to sync the proxies, with whatever methods are added/changed on t= he=20 original object. =2D- Melvyn