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


    Date: Fri, 12 Apr 91 08:48:10 edt
    From: rick@maxai.den.mmc.com (Rick Duffy)

      Lisp question:

      I create a simple structure:

	(defstruct (a-simple-structure (:conc-name nil))

	(setf a-simple-instance (make-a-simple-structure))

      Now, according to CLTL (pg 476: 19.5 Defstruct Options),
      it seems to me that I should be able to reference 
      a-simple-slot with (a-simple-slot a-simple-instance).

      Instead, I seem to need (nila-simple-slot a-simple-instance).

      Is this a bug, or am I simply missing something?

      Thanks ... Rick

    Date: Fri, 12 Apr 91 08:55 EDT
    From: Rick Duffy <rick@maxai.den.mmc.com>
    To: slug@ai.sri.com
    Subject: :conc-name

     Additional info for :conc-name problem:

     This seems to only not work when I'm also using CLOS.
     If I'm in the vanilla USER package, it works fine.

     ... Rick

How are you defining your package?  If you specify :USE '(CLOS) then it
isn't inheriting from LISP or SYMBOLICS-COMMON-LISP.  The CLOS package
only exports the CLOS additions.  You have to specify :USE '(LISP CLOS)
or :USE '(SCL CLOS) in order to inherit all the standard Common Lisp
symbols as well.