Alter `unparser/tagged-pair-method' and
authorChris Hanson <org/chris-hanson/cph>
Wed, 19 Sep 1990 00:32:55 +0000 (00:32 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 19 Sep 1990 00:32:55 +0000 (00:32 +0000)
`unparser/tagged-vector-method' to disallow futures as tags.

v7/src/runtime/boot.scm
v7/src/runtime/gdatab.scm
v7/src/runtime/global.scm
v8/src/runtime/global.scm

index 5f1eee81fc083192507ae42f3c3ef47d99b38188..8cac467a24884e5af698c02b05800654ff4c783d 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/boot.scm,v 14.3 1989/08/09 11:08:31 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/boot.scm,v 14.4 1990/09/19 00:32:41 cph Rel $
 
-Copyright (c) 1988 Massachusetts Institute of Technology
+Copyright (c) 1988, 1990 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -92,4 +92,7 @@ MIT in each case. |#
 (define-primitives
   (object-pure? pure?)
   (object-constant? constant?)
-  get-next-constant)
\ No newline at end of file
+  get-next-constant)
+
+(define-integrable (future? object)
+  ((ucode-primitive object-type? 2) (ucode-type future) object))
\ No newline at end of file
index d3df67da7937866e3adf1207e65545cff36b2659..05605d438b9164f4a0b4690c89e8ce86c023c83e 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gdatab.scm,v 14.4 1989/06/09 16:51:21 cph Rel $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/gdatab.scm,v 14.5 1990/09/19 00:32:28 cph Rel $
 
-Copyright (c) 1988, 1989 Massachusetts Institute of Technology
+Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -53,13 +53,15 @@ MIT in each case. |#
 (define named-structure-descriptions)
 
 (define (unparser/tagged-pair-method tag)
-  (1d-table/get tagged-pair-methods tag false))
+  (and (not (future? tag))
+       (1d-table/get tagged-pair-methods tag false)))
 
 (define (unparser/set-tagged-pair-method! tag method)
   (1d-table/put! tagged-pair-methods tag method))
 
 (define (unparser/tagged-vector-method tag)
-  (1d-table/get tagged-vector-methods tag false))
+  (and (not (future? tag))
+       (1d-table/get tagged-vector-methods tag false)))
 
 (define (unparser/set-tagged-vector-method! tag method)
   (1d-table/put! tagged-vector-methods tag method))
index 188860082d5b82cfd7e43421c0a66db1f026466d..481848d6974f536efefb6fb7a6b0d6ae47e8eef0 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.17 1990/09/11 21:58:52 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/global.scm,v 14.18 1990/09/19 00:32:55 cph Exp $
 
 Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
 
@@ -167,9 +167,6 @@ MIT in each case. |#
       (if (< (real-time-clock) end)
          (wait-loop)))))
 
-(define-integrable (future? object)
-  ((ucode-primitive object-type? 2) (ucode-type future) object))
-
 (define (exit)
   (if (prompt-for-confirmation "Kill Scheme")
       (%exit)))
index 58d36b2586e16e033da69f9ddd384169b72b8c0b..b064b0c77193a9bde80e0402c1098082b79bfc9d 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.17 1990/09/11 21:58:52 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/global.scm,v 14.18 1990/09/19 00:32:55 cph Exp $
 
 Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
 
@@ -167,9 +167,6 @@ MIT in each case. |#
       (if (< (real-time-clock) end)
          (wait-loop)))))
 
-(define-integrable (future? object)
-  ((ucode-primitive object-type? 2) (ucode-type future) object))
-
 (define (exit)
   (if (prompt-for-confirmation "Kill Scheme")
       (%exit)))