[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Another (major) difference
- To: larus@ginger.Berkeley.EDU
- Subject: Another (major) difference
- From: Eric Benson <eb@lucid.com>
- Date: Mon, 29 Aug 88 23:23:57 PDT
- Cc: Gregor.pa@Xerox.COM, CommonLoops.pa@Xerox.COM
- In-reply-to: James Larus's message of Mon, 29 Aug 88 09:52:07 PDT <8808291652.AA17481@paris.Berkeley.EDU>
- Redistributed: CommonLoops.pa
Redistributed: CommonLoops.pa
From: larus@paris.Berkeley.EDU (James Larus)
Reply-To: larus@ginger.Berkeley.EDU
Date: Mon, 29 Aug 88 09:52:07 PDT
Gregor,
A major difference between the AAAI release of PCL and
previous releases of PCL is minimally documented in the release notes.
PCL now checks whether slots are "unbound", in other words, you can no
longer assume that fields within an object are initialized to NIL.
This is a major change to the sematics of PCL (and a major difference
from the semantics of CL structures).
I beg to differ. On p.308 of the Silver Bible regarding DEFSTRUCT:
"If no {\it default-init} is specified, then the initial contents of
the slot are undefined and implementation-dependent."
It is only by convention, not by law, that existing Common Lisp
implementations initialize unspecified DEFSTRUCT slots to NIL.