Redefine #!optional and #!rest to be something distinct from symbols.
authorChris Hanson <org/chris-hanson/cph>
Wed, 18 Sep 1991 20:05:55 +0000 (20:05 +0000)
committerChris Hanson <org/chris-hanson/cph>
Wed, 18 Sep 1991 20:05:55 +0000 (20:05 +0000)
v7/src/runtime/parse.scm
v7/src/runtime/runtime.pkg
v7/src/runtime/unpars.scm
v7/src/runtime/version.scm
v8/src/runtime/runtime.pkg

index ad33f4b0e3b877ca8dda7993705481a51b793b8c..ed4c80c897d9005aaca0d56d19980888b4a8d8b5 100644 (file)
@@ -1,8 +1,8 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.15 1991/08/27 23:20:30 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.16 1991/09/18 20:00:17 cph Exp $
 
-Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
+Copyright (c) 1988-91 Massachusetts Institute of Technology
 
 This material was developed by the Scheme project at the Massachusetts
 Institute of Technology, Department of Electrical Engineering and
@@ -57,8 +57,8 @@ MIT in each case. |#
                             (char-set #\0 #\1 #\2 #\3 #\4 #\5 #\6 #\7 #\8 #\9
                                       #\+ #\- #\. #\#)))
 
-  (set! lambda-optional-tag (intern "#!optional"))
-  (set! lambda-rest-tag (intern "#!rest"))
+  (set! lambda-optional-tag (object-new-type (ucode-type true) 3))
+  (set! lambda-rest-tag (object-new-type (ucode-type true) 4))
   (set! dot-symbol (intern "."))
   (set! named-objects
        `((NULL . ,(list))
index 78bfea77f4e850eca9f99f524db39122f677f2a4..30232cf19c21696ce361aca8f4afa8fb6f75355e 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.122 1991/09/08 02:57:03 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.123 1991/09/18 20:01:00 cph Exp $
 
 Copyright (c) 1988-91 Massachusetts Institute of Technology
 
@@ -1348,6 +1348,9 @@ MIT in each case. |#
   (export (runtime syntaxer)
          lambda-optional-tag
          lambda-rest-tag)
+  (export (runtime unparser)
+         lambda-optional-tag
+         lambda-rest-tag)
   (export (runtime macros)
          lambda-optional-tag)
   (export (runtime unsyntaxer)
index 73b6fc271a6280e3b5c2dea9823369dfd925e16a..3a8a59f6768faf8de25563175a9c6411935053f7 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unpars.scm,v 14.23 1991/08/27 23:21:20 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unpars.scm,v 14.24 1991/09/18 20:00:45 cph Exp $
 
 Copyright (c) 1988-91 Massachusetts Institute of Technology
 
@@ -279,6 +279,8 @@ MIT in each case. |#
 (define (unparse/true object)
   (cond ((eq? object true) (*unparse-string "#T"))
        ((undefined-value? object) (*unparse-string "#[undefined-value]"))
+       ((eq? object lambda-optional-tag) (*unparse-string "#!optional"))
+       ((eq? object lambda-rest-tag) (*unparse-string "#!rest"))
        (else (unparse/default object))))
 
 (define (unparse/return-address return-address)
index 4b8162ff8fa37ca5d056f4865c9dee2008787dfa..ab6bec903b037fb06003c4bd874afa45416f3da7 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.139 1991/09/08 02:58:16 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/version.scm,v 14.140 1991/09/18 20:05:55 cph Exp $
 
 Copyright (c) 1988-91 Massachusetts Institute of Technology
 
@@ -45,7 +45,7 @@ MIT in each case. |#
                     '()))
   (add-system! microcode-system)
   (add-event-receiver! event:after-restore snarf-microcode-version!)
-  (add-identification! "Runtime" 14 139))
+  (add-identification! "Runtime" 14 140))
 
 (define microcode-system)
 
index eec2b102ced2b13207237053321b2371051bc354..355091b65276b8b841dc7aedcd8c330a4d670682 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.122 1991/09/08 02:57:03 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.123 1991/09/18 20:01:00 cph Exp $
 
 Copyright (c) 1988-91 Massachusetts Institute of Technology
 
@@ -1348,6 +1348,9 @@ MIT in each case. |#
   (export (runtime syntaxer)
          lambda-optional-tag
          lambda-rest-tag)
+  (export (runtime unparser)
+         lambda-optional-tag
+         lambda-rest-tag)
   (export (runtime macros)
          lambda-optional-tag)
   (export (runtime unsyntaxer)