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))
(call-with-values
(lambda ()
(parallel))
(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".