Fix bug in copying of declarations, where variable was passed to
authorChris Hanson <org/chris-hanson/cph>
Mon, 27 Apr 1987 21:45:33 +0000 (21:45 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 27 Apr 1987 21:45:33 +0000 (21:45 +0000)
`block/lookup-name' rather than the variable's name.

v7/src/sf/copy.scm

index d9efd13ea3cd7d98751ce3de50756efc4f96b95a..fc9de913d508e0f254c2fe83820e3eb3aa5d68ae 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/copy.scm,v 3.3 1987/03/20 23:49:22 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/sf/copy.scm,v 3.4 1987/04/27 21:45:33 cph Exp $
 
 Copyright (c) 1987 Massachusetts Institute of Technology
 
@@ -143,7 +143,8 @@ MIT in each case. |#
          (environment/lookup environment variable
            identity-procedure
            (lambda ()
-             (block/lookup-name root-block variable))))
+             (block/lookup-name root-block
+                                (variable/name variable)))))
        (lambda (expression)
          (copy/expression block environment expression)))))