Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: RFC: Class::DispatchToAll

by John M. Dlugosz (Monsignor)
on Jul 11, 2002 at 14:56 UTC ( #181037=note: print w/ replies, xml ) Need Help??


in reply to RFC: Class::DispatchToAll

As a C++ programmer, I note that some methods work this way, namely destructors and assignment.

I agree with the comment that the "normal" use of supplying your own definition is to override the behavior, not co-operate with multiple versions.

However, I think it would be useful to have an "every parent" dispatch. Each class's implementation works for that (final put-together) class. When you're putting together a new one, you are responsible for coordinating the activity of your direct parent classes; they in turn deal with their parents and members.

Having an every-parent displatch would take the place of "super" which doesn't make much sence in a multiple-inheritence environment.


Comment on Re: RFC: Class::DispatchToAll

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-08-01 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls