[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
:conc-name
- To: rick@maxai.den.mmc.com (Rick Duffy)
- Subject: :conc-name
- From: barmar@Think.COM (Barry Margolin)
- Date: Fri, 12 Apr 1991 13:28:00 -0400
- Cc: slug@ai.sri.com
- In-reply-to: <9104121248.AA07748@maxai>, The message of 12 Apr 91 08:48 EDT from rick@maxai.den.mmc.com, The message of 12 Apr 91 08:48 EDT from Rick Duffy, <9104121255.AA07791@maxai>, The message of 12 Apr 91 08:55 EDT from rick@maxai.den.mmc.com, The message of 12 Apr 91 08:55 EDT from Rick Duffy
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))
a-simple-slot)
(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.
barmar
- References:
- :conc-name
- From: rick@maxai.den.mmc.com (Rick Duffy)