Quoting Tony Fraser <[EMAIL PROTECTED]>:

> Hi,
> 
> I'm developing a reusable subclass of CGI::Application. For this project
> I would like to have a new hook added to CGI::Application.
> 
> The attached patch includes the changes I have made to my local copy for
> development. If anyone has any suggestions or anything please speak up.
> Otherwise, I'd like to see these changes included in the main
> distribution.

Hi Tony,

The extra hook you have added looks like it occurs immediately after the
teardown hook.  So it doesn't look like it realy adds a new location for a hook,
since a simple teardown hook will do exactly the same thing.

Can you explain why you need this addition?  Is it because you are already using
the teardown hook elsewhere, hence you can't use it again?  If so, then maybe we
should bring up the multi hook patch that I supplied to the list quite a while
ago.  This would allow you to register multiple methods to each hook.  So with
that patch, you could reuse the teardown hook without risking it being
overridden in a subclass.

Another solution is to just reuse the teardown method, and be sure to call
$self->SUPER::teardown within any teardown method you create.  This will walk up
the inheritance tree and execute the teardown method of the superclass.

If I'm misunderstanding what you require, please let me know.

Cheers,

Cees

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

Reply via email to