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 ([EMAIL PROTECTED]) :: The PHP Project (http://www.php.net/) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php