From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mikael Djurfeldt Newsgroups: gmane.lisp.guile.devel Subject: Re: for-each and varargs Date: Mon, 10 Feb 2003 13:43:23 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <87of5lf5r5.fsf@zip.com.au> Reply-To: djurfeldt@nada.kth.se NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044880930 13830 80.91.224.249 (10 Feb 2003 12:42:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 12:42:10 +0000 (UTC) Cc: guile-devel@gnu.org 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 18iDGA-0003aV-00 for ; Mon, 10 Feb 2003 13:42:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iDI1-0002YQ-03 for guile-devel@m.gmane.org; Mon, 10 Feb 2003 07:44:01 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18iDHg-0002QJ-00 for guile-devel@gnu.org; Mon, 10 Feb 2003 07:43:40 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18iDHY-0001yd-00 for guile-devel@gnu.org; Mon, 10 Feb 2003 07:43:36 -0500 Original-Received: from kvast.blakulla.net ([213.212.20.77]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iDHW-0001p0-00 for guile-devel@gnu.org; Mon, 10 Feb 2003 07:43:31 -0500 Original-Received: from dyna224-225.nada.kth.se ([130.237.224.225] helo=linnaeus) by kvast.blakulla.net with esmtp (Exim 3.36 #1 (Debian)) id 18iDHR-0006Cz-00; Mon, 10 Feb 2003 13:43:25 +0100 Original-Received: from mdj by linnaeus with local (Exim 3.36 #1 (Debian)) id 18iDHP-0004WX-00; Mon, 10 Feb 2003 13:43:24 +0100 Original-To: Kevin Ryde In-Reply-To: <87of5lf5r5.fsf@zip.com.au> (Kevin Ryde's message of "Mon, 10 Feb 2003 08:28:46 +1000") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) Original-cc: djurfeldt@nada.kth.se 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:1907 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1907 Kevin Ryde writes: > In the latest cvs built on a recent i386 debian, for-each doesn't > always seem to like a procedure taking a variable number of arguments. > For instance foo.scm, > > (for-each (lambda (x . y) (display x)) > '(1 2 3)) > > run with "guile -s foo.scm" gives > > ERROR: In procedure for-each: > ERROR: Wrong type argument in position 1: # > > whereas I hoped it would display `123'. * eval.c (scm_trampoline_0, scm_trampoline_1, scm_trampoline_2): Fixed formals tests for closures. (Thanks to Kevin Ryde.) Silly me. I've been a bit careless when implementing this one. > Curiously this is what it does when run interatively, not with > "guile -s". That's because "guile -s" uses the "normal" evaluator by default. for-each doesn't use an optimized strategy when the debugging evaluator is active. This is to get a more informative backtrace. Best regards, Mikael D. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel