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

Re: Deinit callbacks for fake plugins?



On Fri, 2002-11-01 at 23:49, Peter Zelezny wrote:
> On 30 Oct 2002 17:27:36 -0800
> Alexander Hvostov <alex@aoi.dyndns.org> wrote:
> 
> > > Yes, I could trap /unload and do that, but like I said before, it's a
> > > pretty brutal and inelegant way of doing it.
> > 
> > I forgot to mention that this would also require me to interpret the
> > parameters of the /unload command myself, to determine which plugin to
> > unload, if any. If you were to decide to change the syntax of /unload in
> > some way (a situation that does not seem entirely implausible), my code
> > to do this would break.
> 
> Python and Perl both load/unload this way already. If you find the args of
> load/unload arn't interesting to java, just return EAT_NONE. For example,
> the perl plugin looks for a ".pl" extension to the 1st arg, and only deals
> with the command when found.

I am aware of that. I am trying to say that it's a bad way of doing it.

Alex.

-- 
PGP Public Key: http://aoi.dyndns.org/~alex/pgp-public-key

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s:++ a18 C++(++++)>$ UL+++(++++) P--- L+++>++++ E---- W+(+++) N-
o-- K+ w--- !O M(+) V-- PS+++ PE-- Y+ PGP+(+++) t* 5-- X-- R tv b- DI
D+++ G e h! !r y
------END GEEK CODE BLOCK------

This is a digitally signed message part