On Thursday 03 May 2007 22:17:32 Allison Randal wrote:

> Matt Diephouse wrote:

> > As a feature, this could do a world of hurt. I'm not sure how much
> > sense it makes to copy a method from one class to another...

> This is the key point. Direct import/export is really for libraries.
> Classes use composition of roles.

Suppose I extend a built-in PMC through PIR code.  If certain vtable methods 
can share the same implementation, it would be nice to be able to re-use a 
single implementation through some mechanism other than copy and paste.

It seems to me the question of whether a specific PIR sub is usable as a 
vtable method is a separate question of how else I might be able to use that 
PIR sub in the rest of the code.

-- c

Reply via email to