Re: abstract search count

[prev] [thread] [next] [Date index for 2004/06/17]

From: Stephen Quinney
Subject: Re: abstract search count
Date: 10:06 on 17 Jun 2004
On Thu, Jun 17, 2004 at 11:39:03AM +0200, Jean-Christophe Zeus wrote:
> On Jun 17, 2004, at 11:11 AM, Tony Bowden wrote:
> 
> >>My proposal is: all the plugin methods (not
> >>starting with an underscore) are injected into the caller's package
> >>automatically.
> >
> >This scares me slightly (and don't forget you'll want to remove 
> >'import'
> >from that list!)
> 
> I agree: that would be perhaps a bit _too_ convenient, and thereby 
> dangerous in the sense of unexpected behaviour.
> 
> >I think I'd prefer either methods with a given prefix to be exported, 
> >or
> >the author having to specify the list somewhere ...
> 
> Given prefix: that's a possibility. And that prefix is then removed 
> before injecting into the caller's package?
> 
> List: I thought about that, too. Perhaps the habitual @EXPORT and 
> @EXPORT_OK, so that the caller can choose which methods he wants to be 
> injected?

How about making use of attributes that can be applied to subroutines?
The write of a plugin could then just mark which subs should be
imported.

Stephen

(message missing)

abstract search count
Jean-Christophe Zeus 07:46 on 11 Jun 2004

RE: abstract search count
Jim Helm 16:15 on 14 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 14:45 on 16 Jun 2004

Re: abstract search count
Tony Bowden 07:01 on 17 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 08:49 on 17 Jun 2004

Re: abstract search count
Tony Bowden 09:11 on 17 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 09:39 on 17 Jun 2004

Re: abstract search count
Stephen Quinney 10:06 on 17 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 10:47 on 17 Jun 2004

Re: abstract search count
Stephen Quinney 10:53 on 17 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 13:33 on 17 Jun 2004

Re: abstract search count
Simon Cozens 14:20 on 17 Jun 2004

Re: abstract search count
Jean-Christophe Zeus 14:26 on 17 Jun 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52