This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: receive
- To: Klaus.Schilling@home.ivm.de
- Subject: Re: receive
- From: David Lutterkort <lutter@cise.ufl.edu>
- Date: 25 May 1999 12:16:34 -0400
- cc: guile@cygnus.com
- References: <m10mGaW-000H3xC@debian>
receive is just a convenience for gluing a values-producer and consumer
together, saving the typing of a couple lambda's. There is an
implementation in terms of call-with-values in guile-scsh (file
receive.scm). Here it is:
; Copyright (c) 1993, 1994 Richard Kelsey and Jonathan Rees. See file COPYING.
(define-syntax receive
(syntax-rules ()
((receive ?vars ?producer . ?body)
(call-with-values (lambda () ?producer)
(lambda ?vars . ?body)))))
- References:
- receive
- From: Klaus Schilling <Klaus.Schilling@home.ivm.de>