| To: | scsh-news@zurich.ai.mit.edu |
|---|---|
| Subject: | Re: Channel closed N N |
| From: | Rolf-Thomas Happe <rthappe@mathematik.uni-freiburg.de> |
| Date: | 15 Apr 2002 18:24:44 +0200 |
| Organization: | IAM * ALU Frg * Germ |
Michal =?iso-8859-2?q?Maru=B9ka?= writes:
> My construction is: (i hope this is the right one):
> | (receive (port child) (run/port+proc (diff -rq ,dir ,master))
>
> I would like silence (optional), though.
You can, if the return value of the RECEIVE block doesn't matter,
finally (CLOSE PORT), otherwise you may prefer to
(CLOSE-AFTER PORT (LAMBDA (PORT) (OPERATE-ON PORT))), like so:
(receive (port child) (run/port+proc (diff -rq ,dir ,master))
(close-after port (lambda (ip) (port->string ip))))
rthappe
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Channel closed N N, Michal Maruška |
|---|---|
| Next by Date: | FPS (functional Postscript) or other graphical output package for Scheme?, Antti Karttunen |
| Previous by Thread: | Re: Channel closed N N, Michal Maruška |
| Next by Thread: | FPS (functional Postscript) or other graphical output package for Scheme?, Antti Karttunen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |