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

Re: [cgiapp] Re: Re: feedback on CGI::Application::Dispatch



Viacheslav Sheveliov wrote:
> I'd like to add.
> 
> It's like in Exporter: we make declarations of @EXPORT* vars and
> Exporter makes the work for us.

Exporter works that way cause you *subclass* it and override the @EXPORT*
variables. The way Dispatch currently works all you need to do is *subclass* it
and override the dispatch_args() method. Same principle.

I like the idea of overriding a method better since you can more
complicated/dynamic stuff than you can with simple variable assignment.

-- 
Michael Peters
Developer
Plus Three, LP


---------------------------------------------------------------------
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.