Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!portc01.blue.aol.com!news-peer.gsl.net!news.gsl.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!uknet!newsfeed.ed.ac.uk!leeds.ac.uk!news
From: stephenp@mi.leeds.ac.uk (Stephen Pascoe)
Subject: Re: R5RS and the June92 Meeting....
Originator: stephenp@miris10.leeds.ac.uk
Message-ID: <u8rzq0cn2w4.fsf@miris10.leeds.ac.uk>
NNTP-Posting-Host: miris10.leeds.ac.uk
Date: Wed, 20 Nov 1996 16:32:29 +0000 (GMT)
References: <328BDA4C.6144@sonic.net>
X-Newsreader: Gnus v5.3/Emacs 19.34
Lines: 25

"Ray S. Dillinger" <bear@sonic.net> writes:

>         values might be defined as follows:
> 
> (define values . things)
>    (call-with-current-continuation
>         (lambda (cont) (apply cont things))))

Am I missing something here?  Assuming there should be a parentheses
before values surely the continuation passed by call/cc is the return
from values, therefore this is equivalent to

(define (values . things) things)

call-with-values counld then be defined as

(define (call-with-values thunk receiver)
   (apply receiver (thunk)))


-- 
Stephen Pascoe
http://www.chem.leeds.ac.uk/ICAMS/people/stephenp/home.html
Email: stephenp@mi.leeds.ac.uk
Voice: 0113 274 9636 (Home), 0113 233 6597 (Work)
