Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

[Parrot] calling $self->SUPER::method()

by Thilosophy (Curate)
on Jun 05, 2005 at 07:51 UTC ( #463675=perlquestion: print w/ replies, xml ) Need Help??
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().

Comment on [Parrot] calling $self->SUPER::method()
Download Code
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://463675]
Approved by Eyck
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2014-11-28 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (192 votes), past polls