Re: (use-package "MATLISP") doesn't work

Raymond Toy <[email protected]> Tue, 10 Apr 2007 13:06:41 -0400
Newsgroups gmane.lisp.matlisp.user
Message-ID <[email protected]>
>>>>> "Tamas" == Tamas K Papp <Tamas> writes:

    Tamas> I start cmucl (latest version) and do (load "start.lisp") from the
    Tamas> directory where I put matlisp.

    Tamas> I try to load it with use-package, but get the following error message:

    Tamas> *  (use-package "MATLISP")


    Tamas> Error in function USE-PACKAGE:
    Tamas>    Use'ing package MATLISP results in name conflicts for these symbols:
    Tamas> (REAL HELP)
    Tamas>    [Condition of type SIMPLE-ERROR]

This is a known issue.  Matlisp defines a function REAL in the MATLISP
package.  This collides with the symbol REAL in COMMON-LISP.  If you
continue, you will lose the symbol REAL from the CL-USER package.

    Tamas> OTOH, in-package works fine:


    Tamas> * (in-package "MATLISP-USER")

This is the preferred way to access Matlisp.

    Tamas> #<The MATLISP-USER package, 1/9 internal, 0/2 external>

    Tamas> but only after I run (load "start.lisp").

The package won't exist until you load start.lisp.

    Tamas> Questions:
    Tamas> 1. do I need to load start.lisp every time I want to use matlisp?
    Tamas> 2. how can I make use-package work?

1. You can save a core file with Matlisp and everything loaded.  
2. Not sure, but you need to be careful because Matlisp defines it's
   own REAL function.

Ray


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV