Fix bug: RECORD-TYPE-DISPATCH-TAG must be an absolute reference.
authorChris Hanson <org/chris-hanson/cph>
Fri, 25 Apr 2003 00:58:21 +0000 (00:58 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 25 Apr 2003 00:58:21 +0000 (00:58 +0000)
v7/src/runtime/defstr.scm

index b41c5959ebda88e4035746e5e198d5053e8a9794..df4bdb043b45431920b571289964e80f90d7851c 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: defstr.scm,v 14.54 2003/03/14 20:11:37 cph Exp $
+$Id: defstr.scm,v 14.55 2003/04/25 00:58:21 cph Exp $
 
 Copyright 1987,1988,1989,1990,1991,1992 Massachusetts Institute of Technology
 Copyright 1993,1994,1995,1996,1997,2000 Massachusetts Institute of Technology
@@ -755,7 +755,9 @@ differences:
          (case (structure/physical-type structure)
            ((RECORD)
             `((DEFINE ,predicate-name
-                (LET ((TAG (RECORD-TYPE-DISPATCH-TAG ,tag-expression)))
+                (LET ((TAG
+                       (,(absolute 'RECORD-TYPE-DISPATCH-TAG context)
+                        ,tag-expression)))
                   (NAMED-LAMBDA (,predicate-name OBJECT)
                     (AND (,(absolute '%RECORD? context) OBJECT)
                          (,(absolute 'EQ? context)