[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
defconstant/defclass problem
- To: slug@ai.sri.com
- Subject: defconstant/defclass problem
- From: <@IU.AI.SRI.COM:slug-admin@iu.ai.sri.com>
- Date: Fri, 18 Sep 1992 15:18:28 -0400
- Illegal-object: Syntax error in From: address found on relay.cs.toronto.edu: From: Philip L.Stubblefield <phil@rpal.rockwell.com> ^ ^-illegal period in phrase \-phrases containing '.' must be quoted
Using Genera 8.1.1 on a MacIvory III, we're having an unexpected problem
compiling a file that uses a constant as the initform for a slot. When you try
to compile this file (listed below), the compiler complains that the variable
FOO is unbound. Because the compiler needs to know the value of a constant in
order to open-code it, I had always assumed that the compiler bound the constant
at compile time, but this appears not to be the case. What gives? This seems
like a bug to us.
;;; -*- Mode: LISP; Syntax: Ansi-common-lisp; Package: CL-USER; Base: 10 -*-
(defconstant foo 0)
(defclass bar ()
((baz :initform foo)))