From fbd31134f24e072c31406c57b023e57ac1114164 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Sat, 30 Aug 2008 19:54:37 +0000 Subject: [PATCH] In expansion of VALUES, number the local variables to distinguish them visibly. --- v7/src/sf/usiexp.scm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/v7/src/sf/usiexp.scm b/v7/src/sf/usiexp.scm index c475256a5..9de609c66 100644 --- a/v7/src/sf/usiexp.scm +++ b/v7/src/sf/usiexp.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: usiexp.scm,v 4.50 2008/02/13 06:21:07 cph Exp $ +$Id: usiexp.scm,v 4.51 2008/08/30 19:54:37 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -359,11 +359,15 @@ USA. (if-expanded (let ((block (block/make block #t '()))) (let ((variables - (map (lambda (operand) + (map (lambda (operand position) operand (variable/make&bind! block - (string->uninterned-symbol "value"))) - operands))) + (string->uninterned-symbol + (string-append + "value-" + (number->string position))))) + operands + (iota (length operands))))) (combination/make (and expr (object/scode expr)) block -- 2.25.1