Re: Custom object creation and reference counts

From: Date: Sat, 03 Jan 2004 10:44:05 +0000
Subject: Re: Custom object creation and reference counts
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-6765@lists.php.net to get a copy of this message
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/)

« previous php.internals (#6765) next »