From 63966a1b33f6471644f8a33a62657ef233786651 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Thu, 19 Mar 1987 23:11:10 +0000 Subject: [PATCH] Definitions are side-effects to the variable also. --- v7/src/compiler/base/ctypes.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v7/src/compiler/base/ctypes.scm b/v7/src/compiler/base/ctypes.scm index cebdf92e6..746ddefe2 100644 --- a/v7/src/compiler/base/ctypes.scm +++ b/v7/src/compiler/base/ctypes.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/base/ctypes.scm,v 1.41 1987/03/19 23:06:16 cph Exp $ +$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/compiler/base/ctypes.scm,v 1.42 1987/03/19 23:11:10 cph Exp $ Copyright (c) 1987 Massachusetts Institute of Technology @@ -48,6 +48,8 @@ MIT in each case. |# (define (make-definition block lvalue rvalue) (vnode-connect! lvalue rvalue) + (if (variable? lvalue) + (set-variable-assignments! lvalue (1+ (variable-assignments lvalue)))) (snode->scfg (make-snode definition-tag block lvalue rvalue))) (define-pnode true-test rvalue) -- 2.25.1