[plt-scheme] Please help test version 359.100
At Tue, 14 Nov 2006 12:54:54 +0100, "Jos Koot" wrote:
> ----- Original Message -----
> From: Robby Findler
> To: Matthias Felleisen
> Cc: Jacob Matthews ; plt-scheme at list.cs.brown.edu
> Sent: Tuesday, November 14, 2006 4:09 AM
> Subject: Re: [plt-scheme] Please help test version 359.100
>
>
> My reading indicates they would both be legal.
>
> What seems to be illegal is
>
> (for-each (lambda (x) (values x x)) (list 1))
> -->
> (values 1 1)
>
> If I understand well, the procedure is invoked in tail position when
> reaching the last element of the list. To me it seems up to the
> continuation of the for-each call how many values can be returned. (I
> don't bother much about this for in my code for-each calls always (I
> hope) have continuations that disregard any returned value(s))
That's what for-each does (did, until very recently anyways). The
question is whether or not that's legal.
Robby