in reply to Sub getting it's own CODE ref? Proto-OO

Have you studied how Class::Prototyped does it?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

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

Replies are listed 'Best First'.
Re^2: Sub getting it's own CODE ref? Proto-OO
by bsb (Priest) on Jun 17, 2004 at 01:17 UTC
    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.