Thilosophy has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks,

although, as has been pointed out, the number of Parrot-savvy monks is still quite low (and PerlMonks may thus not be the most suitable place to ask about All Things Parrot), I'd like to pose another question about it, this time a really simple one:

How do I (in Parrot assembly language) call an inherited, but overridden method? In Perl, that would be something like $self->SUPER::method().

Replies are listed 'Best First'.
Re: [Parrot] calling $self->SUPER::method()
by Zaxo (Archbishop) on Jun 05, 2005 at 10:55 UTC

    I found parrot-0.2.1/docs/pdds/pdd15_objects.pod which doesn't address the question directly, but implies some sort of answers. There are sections on vtables and calling methods towards the end of the doc.

    It looks like the Perl Magic Cookies (PMC's) contain the inheritance information about classes in a tree of ParrotClass PMC's.

    After Compline,
    Zaxo

Re: [Parrot] calling $self->SUPER::method()
by chip (Curate) on Jun 14, 2005 at 09:14 UTC
    Well, I looked through the code and asked Leo, and the final answer is: "You can't get there from here." Feature not yet implemented or even spec'd. But of course we know we need it.

    In the meantime, of course, you can search yourself by following the parent links. Ugly, but ... well, no, there's no "but". It's just ugly.

        -- Chip Salzenberg, Free-Floating Agent of Chaos