Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: RFC: Class::DispatchToAll

by TheDamian (Priest)
on Jul 11, 2002 at 11:33 UTC ( #180999=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: RFC: Class::DispatchToAll
in thread RFC: Class::DispatchToAll

Yes. Each method will be called in the same context as the original call through EVERY::, and the collective return value will be:

  • a ref to an array of scalars (in scalar context)
  • a list of refs to arrays (in list context)
That is, EVERY:: will aggregrate the individual return values, and return them in a form appropriate to the calling context.


Comment on Re: Re: Re: RFC: Class::DispatchToAll
Select or Download Code
Re: Re: Re: Re: RFC: Class::DispatchToAll
by domm (Chaplain) on Jul 11, 2002 at 20:25 UTC
    Should I then wait for your release and dump my code, wait for your release, benchmark and then dump the slower code, or still put Class::DispatchToAll on CPAN (in compliance with TMTOWTDI, especially as I might extend my code to do some other stuff (like width-first traversal, or returning the package a method was found in and the return value..))?
    -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-09-22 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (182 votes), past polls