From: Taylor R. Campbell Date: Sat, 30 Aug 2008 19:54:37 +0000 (+0000) Subject: In expansion of VALUES, number the local variables to distinguish X-Git-Tag: 20090517-FFI~201 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=fbd31134f24e072c31406c57b023e57ac1114164;p=mit-scheme.git In expansion of VALUES, number the local variables to distinguish them visibly. --- 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