On Sun, Feb 03, 2002 at 09:29:27PM +0100, Juergen Boemmels wrote:
> Hi there,
> 
> I played again a little with the vtables.
> I noticed that all *.pmc function implement the methods type and name
> are implemented the same way. Then I was wondering if its possible to
> autogenerate this functions in the pmc2c.pl
> 
> This patch implements autogeneration of this functions, and therefor
> they are deleted from the *.pmc files. genclass.pl will not generate
> them any more. If the user really wants to implement this functions
> then he can add them to the pmc-file and this will replace the
> autogenerated one.

This makes sense to me for name(), but why type()? For type(), you can
just leave it out of the .pmc and it'll inherit from default.pmc.
(That won't work for name(), because it refers to a static variable.)

Unless Parrot_XXX_type() is called directly at times instead of
through the vtable? (I don't know what it's for.)

Reply via email to