Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: goto superclass method

by Ovid (Cardinal)
on Dec 22, 2004 at 18:05 UTC ( [id://416848]=note: print w/replies, xml ) Need Help??


in reply to Re: goto superclass method
in thread goto superclass method

Actually, it's very easy to do, as shown in my reply below. can returns a code ref and you can goto a code reference. The only tricky part is writing code that pulls in the entire inheritance heirarchy in the correct order so it can be searched. I suspect the original poster may find that less fast than "optimizing" the stack (if that's what was intended.)

Cheers,
Ovid

New address of my CGI Course.

Replies are listed 'Best First'.
Re^3: goto superclass method
by ikegami (Patriarch) on Dec 22, 2004 at 18:14 UTC
    can returns a code ref

    I did not know that until I saw your snippet below. Very nice!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://416848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-03-29 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found