develooper Front page | perl.perl5.porters | Postings from August 2001

RE: Adding callbacks to the core

Thread Previous | Thread Next
Dan Sugalski
August 20, 2001 13:51
RE: Adding callbacks to the core
Message ID:
At 03:36 PM 8/20/2001 -0500, David M. Lloyd wrote:
>On Mon, 20 Aug 2001, Arthur Bergman wrote:
> > Isn't callback check the same as async check?
>Similar but not the same.  Async check scans an array looking to see which
>signal was triggered; Callback check doesn't need to scan.  Also, with
>callback check, you can add and remove callbacks at runtime.

Why not piggyback the callback stuff onto the event stuff? The check can 
still be cheap--while the ultimate figuring out and dispatch to the 
appropriate routine might be more expensive, the user only pays that when 
something happens rather than all the time.


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai                         have teddy bears and even
                                      teddy bears get drunk

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About