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

RE: [cgiapp] internal name space issue for Plugins (was: Re: Param method?)


> From: news [mailto:suppressed On Behalf Of Mark Stosberg
> Sent: Tuesday, 5 July 2005 10:01
> To: suppressed
> Subject: [cgiapp] internal name space issue for Plugins (was: 
> Re: Param method?)
> 
> 
> On 2005-07-04, Dan Horne <suppressed> wrote:
> >
> > It seems to me that the namespace issue is problematic. For 
> instance 
> > what constitutes a C::A attribute? How about a plugin? For 
> example -- 
> > and it's a contrived example, I'm afraid -- 
> > CGI::Application::Plugin::DBH uses $self->{__DBH} to store 
> its handle, 
> > but what if I unknowingly wrote a plugin that uses the same 
> attribute, 
> > and third party uses both plugins and gets a collision? It 
> seems that 
> > there should be some kind of naming convention for Plugins.
> 
> There is a naming convention for this. It's documented in 
> CGI::Application under the heading "Writing Plugins".  (If 
> you have a suggestion on how this could be clear, please send 
> a patch.  )
> 
> http://search.cpan.org/~markstos/CGI-Application-4.01/lib/CGI/
>Application.pm#Writing_Plug-ins

>It happens that the ::DBH plugin pre-dates the recommendation and chooses
not to follow it.

Ahh, my bad. I haven't read the latest doco - since I'm on an older version
of C::A

Dan


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