[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Re: Yet another callback system proposal


> I'd feel comfortable releasing this.
>
> Feedback from others?

One thing I didn't take into account with my patch (and which has been
bugging me) is that duplicate hooks aren't filtered out.

So for instance:

    CGI::Application
        My::Project        # uses Plugin::A
            My::App        # uses Plugin::A again

This would cause the callbacks registered by Plugin::A to be run twice.

When I wrote the patch, I sort of filed this situation under "don't do
that."  But now I'm wondering if maybe the callback system should remove
duplicates?


Michael




-----------------------------------------------------------------------
Michael Graham <suppressed>

YAPC::NA 2005 Toronto - http://www.yapc.org/America/ - suppressed
-----------------------------------------------------------------------



---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.