Subject: Re: small Q
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 2000/08/08
Newsgroups: comp.lang.dylan,comp.lang.scheme
Message-ID: <8mnutt$e2ctd$1@fido.engr.sgi.com>
Bruce Hoult  <bruce@hoult.org> wrote:
+---------------
| bstewart@bix.com wrote:
| > In fact, it occurs to me that a nice extension to the language would be
| > to allow more than two procedures in call-with-values... pipeline...
| 
| In Dylan you need to do this as multiple statements:
| 
| let (a, b, c) = foo();
| let (d, e)    = bar(a, b, c);
| let (f, g, h) = baz(d, e);
+---------------

In MzScheme (or anything with "let*-values"), you can do:

	(let*-values (((a b c) (foo))
		      ((d e) (bar a b c))
		      ((f g h) (baz d e)))
	  ...use f,g,h... )


-Rob

-----
Rob Warnock, 41L-955		rpw3@sgi.com
Applied Networking		http://reality.sgi.com/rpw3/
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043