in reply to •Re: Sub getting it's own CODE ref? Proto-OO
in thread Sub getting it's own CODE ref? Proto-OO

Not yet, although since each object gets a package C::P's method may not be applicable. I'll check and see.

Update:
C::P uses the package from caller to know which object it's being called on and you have to mark the sub as "superable" so that the implementation can be stashed away and used later. Not really what I'm after but does suggest that there isn't a nicer way. You either pay by wrapping everything or somehow mark the subs that need super magic.

  • Comment on Re^2: Sub getting it's own CODE ref? Proto-OO