Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: goto superclass method

by Ovid (Cardinal)
on Dec 22, 2004 at 18:05 UTC ( #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 (Pope) 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
Node Status?
node history
Node Type: note [id://416848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2019-10-23 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?