On 2005-05-30, Michael Graham <suppressed> wrote:
>
> Cees Hek <suppressed> wrote:
>> Somewhere along the line did we loose the ability to register a
>> callback to the object? In the latest patch, it looks like a call to
>> $self->add_callback(...) will end up registering the callback in
>> ref($self) (or in otherwords, the class, not the object).
>>
>> This means you will not be able to register a one time callback in a
>> persistent environment.
>
> I hadn't considered the usefulness of one-time callbacks. I've added
> the feature and made a new tarball:
>
> http://occamstoothbrush.com/downloads/perl/CGI-Application-4.0_3-positionless-class-callbacks-patch3.tar.gz
>
> Since we're running class-based callbacks in the order of more specific
> (My::App) to less specific (CGI::Application), I made it so that
> object-based callbacks run before class-based callbacks.
>
> I also renamed the name of the storage variable/key from INSTALLED_HOOKS
> to INSTALLED_CALLBACKS. Dunno if that's an improvement or not.
Thanks again for this work Michael.
Unless there is other feedback soon, I'm inclined to release this as
CGI::App 4.0, pending my own final review.
If the callbacks need some refinement after launch, I think we can do
that fairly safely as this is a new feature that I expect relatively few
people to begin using heavily just after the release, relative the
CGI::App installed user base.
Mark
---------------------------------------------------------------------
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.