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

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


> If anyone has some time to hammer something out, I would appreciate
> it, 'cause I have a potentially busy weekend ahead of me.  It may be
> sufficient to take Michael's latest patch and just remove and rework
> the order of execution.

I've made a first draft of a new patch available at the following (insanely
long) URL:

    http://occamstoothbrush.com/downloads/perl/CGI-Application-4.0_3-positionless-class-callbacks-patch.tar.gz

(Note that this will extract as CGI::Application-4.0_3/)

Changes from 4.0_2:
  - callback system is class based, rather than object based

  - removed named positions from callback system

  - the calback order is now determined as follows:
    - the callbacks are grouped by the classes that registered them
    - the classes are sorted according to the order of the current
      application's ISA tree (specific to general).
    - if one class registered more than one callback, these are called
      on the basis of FIFO (first in, first out)

  - removed 4.0_2 callbacks.t test script and added a new one
    (11callbacks.t)

  - documented the new callback system in CGI/Application.pm

  - added Class::ISA as a prerequisite in Makefile.PL

  - added Test::More version 0.47 as a prerequisite in Makefile.PL
    (previously it required version 0 - we could theoretcially change
    this to 0.31, which was when is_deeply() was added.  All I know
    is the tests work okay here on version 0.47)

  - updated MANIFEST and Changes



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.