Can array-ref return (values ...) ? Brad Lucier (19 Feb 2002 16:40 UTC)
Re: Can array-ref return (values ...) ? Jussi Piitulainen (19 Feb 2002 17:20 UTC)
Re: Can array-ref return (values ...) ? Brad Lucier (19 Feb 2002 17:31 UTC)
Re: Can array-ref return (values ...) ? Jussi Piitulainen (19 Feb 2002 19:02 UTC)
Re: Can array-ref return (values ...) ? David Rush (20 Feb 2002 10:14 UTC)
Re: Can array-ref return (values ...) ? Brad Lucier (20 Feb 2002 17:55 UTC)
Re: Can array-ref return (values ...) ? David Rush (20 Feb 2002 18:41 UTC)

Re: Can array-ref return (values ...) ? Brad Lucier 20 Feb 2002 17:55 UTC

>
> Brad Lucier <xxxxxx@math.purdue.edu> writes:
> > > I don't understand. Array-ref by me returns the contents of a single
> > > element, so that would be just (values v) which is just v.
> >
> > Yes, it returns the contents of a single element, but what are the contents
> > of a single element?  ...  Can it be
> > (values a b)?  If not, why not?
>
> No. Because (values ...) is not a data constructor. It is a special
> syntax that explicitly applies its arguments to the current
> continuation [see the recent messages on cls under the TCO thread].

In R5RS, (values ...) is a procedure.

> > And if not, perhaps it should be
> > documented to be not possible.
>
> OK. Except that it's really not possible because of R5RS.

R5RS has nothing at all to say about arrays (or many other things).
So we are free to use our imagination, if we wish.

And if we don't wish to do so, that's OK, too.

Brad