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 ...) ? David Rush 20 Feb 2002 10:13 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].

> And if not, perhaps it should be
> documented to be not possible.

OK. Except that it's really not possible because of R5RS.

david rush
--
Finding a needle in a haystack is a lot easier if you burn down the
haystack and scan the ashes with a metal detector.
	-- the Silicon Valley Tarot