[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can array-ref return (values ...) ?

This page is part of the web mail archives of SRFI 25 from before July 7th, 2015. The new archives for SRFI 25 contain all messages, not just those from before July 7th, 2015.



Brad Lucier <lucier@xxxxxxxxxxxxxxx> 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