[plt-scheme] process.ss bug

From: Paulo J. Matos (pocmatos at gmail.com)
Date: Mon May 29 11:38:18 EDT 2006

On 29/05/06, Eli Barzilay <eli at barzilay.org> wrote:
> On May 29, Paulo J. Matos wrote:
> > Hi all, (DrScheme, version 301.16-svn25may2006)
> >
> > (let-values ([(stdout stdin pid stderr proc) (process "/usr/bin/ls")])
> >     (printf "DONE!"))
> >
> > This results in:
> > context (lexical binding) expected 5 values, received 1 value:
> > (#<input-port:subprocess-stdout> #<output-port:subprocess-stdin> 13702
> > #<input-port:subprocess-stderr> #<procedure:control>)
> >
> > A bug?
>
> No -- `process' is the backward-compatible procedure, which returns a
> *single* list value with 5 values.  `subprocess' is the built-in
> procedure that returns multiple values.
>

Arghh, you're right! :)
My fault!
I took for granted that it would return five values.

Thanks for clearing me out,

Cheers,

Paulo Matos

> --
>           ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                   http://www.barzilay.org/                 Maze is Life!
>


-- 
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group


Posted on the users mailing list.