From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: Re: parallel with no exprs Date: Thu, 12 Jun 2003 11:54:26 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87k7bskqlp.fsf@zip.com.au> References: <87y90cfcjy.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1055382852 20273 80.91.224.249 (12 Jun 2003 01:54:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Jun 2003 01:54:12 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 12 03:54:10 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19QHI1-0005GT-00 for ; Thu, 12 Jun 2003 03:54:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QHJO-00060O-Gq for guile-devel@m.gmane.org; Wed, 11 Jun 2003 21:55:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19QHIy-0005rj-HU for guile-devel@gnu.org; Wed, 11 Jun 2003 21:55:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19QHIm-0005aw-Jb for guile-devel@gnu.org; Wed, 11 Jun 2003 21:54:57 -0400 Original-Received: from snoopy.pacific.net.au ([61.8.0.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19QHIU-00056z-0m for guile-devel@gnu.org; Wed, 11 Jun 2003 21:54:38 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) h5C1sZYd013810 for ; Thu, 12 Jun 2003 11:54:35 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h5C1sZQg011432 for ; Thu, 12 Jun 2003 11:54:35 +1000 (EST) Original-Received: from localhost (ppp124.dyn228.pacific.net.au [203.143.228.124]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h5C1sXYZ005187 for ; Thu, 12 Jun 2003 11:54:34 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19QHIJ-0002z1-00; Thu, 12 Jun 2003 11:54:27 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never In-Reply-To: (Mikael Djurfeldt's message of "Mon, 09 Jun 2003 10:35:50 +0200") User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.2 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2527 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2527 Mikael Djurfeldt writes: > > (use-modules (ice-9 threads)) > (call-with-values > (lambda () > (display "hello\n") > (parallel)) > (lambda () > (display "hi\n"))) I get hello ERROR: Wrong number of arguments to # I'd seen (parallel) expanding to (begin), which was what made me think it was the (begin) that might not be right, since the following gives the same error. (call-with-values (lambda () (display "hi\n") (begin)) (lambda () (display "bye\n"))) > (lambda () (parallel)) correctly yields an error > message since that is a lambda with no expressions in the body. Ah, somehow I missed that (lambda () (begin)) is itself an empty body. Bit subtle that, since of course it doesn't look empty :-). _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel