Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6765 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65491 invoked by uid 1010); 3 Jan 2004 10:44:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 65435 invoked from network); 3 Jan 2004 10:44:09 -0000 Received: from unknown (HELO blacksheep.csh.rit.edu) (129.21.60.6) by pb1.pair.com with SMTP; 3 Jan 2004 10:44:09 -0000 Received: from fury.csh.rit.edu (fury.csh.rit.edu [IPv6:2001:470:1f00:135:a00:20ff:fe8d:5399]) by blacksheep.csh.rit.edu (Postfix) with ESMTP id DA4101F4 for ; Sat, 3 Jan 2004 05:44:06 -0500 (EST) Received: by fury.csh.rit.edu (Postfix, from userid 37404) id 8CD06137F; Sat, 3 Jan 2004 05:44:06 -0500 (EST) Date: Sat, 3 Jan 2004 05:44:05 -0500 To: internals@lists.php.net Message-ID: <20040103104405.GA12572@csh.rit.edu> Mail-Followup-To: internals@lists.php.net References: <20040103000120.GA23760@csh.rit.edu> <20040103000921.GA3712@gravitonic.com> <20040103002841.GB23760@csh.rit.edu> <20040103010033.GA4245@gravitonic.com> <20040103012111.GC23760@csh.rit.edu> <931034707078.20040103101455@marcus-boerger.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <931034707078.20040103101455@marcus-boerger.de> Subject: Re: [PHP-DEV] Custom object creation and reference counts From: jon@php.net (Jon Parise) On Sat, Jan 03, 2004 at 10:14:55AM +0100, Marcus Boerger wrote: > Why do you make it so complicated? You could imply provide a list > of methods for your objects and register them with the third > parameter of INIT_CLASS_ENTRY() macro. I want the list of available methods to be discovered at runtime by inspecting the underlying Python object. In terms of it being complicated, I'll cite the lack of documentation and examples. For the most part, I've been working with the existing com_dotnet and java extensions as inspiration, along with studying zend_object_handlers.[ch]. > Also you should name the constructor '__construct' instead of > 'python' because the former is the prefered way for ZE2. That was a remnant of my original (Zend Engine 1) code (where the constructor had to match the name of the container class). Thanks for noticing it. I've made the change. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)