rif | 18 May 2004 19:26
Picon
Favicon

matlisp "pollutes" the common-lisp-user package


The matlisp "start.lisp" file operates in the package
common-lisp-user.  It defines a function setlogicalroot, which takes a
parameter r.  This definition causes the symbol r to be interned in
the common-lisp-user package.  Therefore, when I have another package
that exports a function named r, I get a conflict.  The workarounds
are simple (I already have another package that loads matlisp and
includes my utilities on top of matlisp, where I also unexport REAL,
so I just unintern R immediatly after loading matlisp, which will work
OK assuming I don't change the order in which I load matlisp and my
library) , but is it really good policy for a library to intern
symbols in cl-user?

rif

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
Raymond Toy | 19 May 2004 18:53
Picon
Picon

Re: matlisp "pollutes" the common-lisp-user package

>>>>> "rif" == rif  <rif <at> mit.edu> writes:

    rif> library) , but is it really good policy for a library to intern
    rif> symbols in cl-user?

It's probably not a good policy.  If you have a patch or something,
that would be ideal. :-)  

I'll see what I can do about it.

Ray

-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
Raymond Toy | 20 May 2004 23:05
Picon
Picon

Re: matlisp "pollutes" the common-lisp-user package

>>>>> "Raymond" == Raymond Toy <toy <at> rtp.ericsson.se> writes:

>>>>> "rif" == rif  <rif <at> mit.edu> writes:
    rif> library) , but is it really good policy for a library to intern
    rif> symbols in cl-user?

    Raymond> It's probably not a good policy.  If you have a patch or something,
    Raymond> that would be ideal. :-)  

    Raymond> I'll see what I can do about it.

Done.  start.lisp is all loaded in the MATLISP-START package.  That
should prevent the symbol pollution you are seeing.

Ray

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

Gmane