[Top][All Lists]

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

parallel with no exprs

From: Kevin Ryde
Subject: parallel with no exprs
Date: Mon, 09 Jun 2003 08:07:45 +1000
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux)

I tried using parallel with no expressions,

        (use-modules (ice-9 threads))
            (lambda ()
          (lambda ()
            (display "hi\n")))

but got

        ERROR: In procedure lambda:
        ERROR: bad body

Is parallel allowed to be called with no expressions?  It'd be pretty
silly to write that deliberately, but perhaps it could arise from a
simple-minded macro expansion or something.

        * threads.scm (parallel): For no forms, use `(values)' not `(begin)'.

        * tests/threads.test: New file, exercising "parallel".

Attachment: threads.scm.parallel-empty.diff
Description: Text document

Attachment: threads.test
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]