From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doc subr rest arg Date: Thu, 21 Apr 2005 08:25:27 +1000 Message-ID: <8764yhgk6g.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114037921 14850 80.91.229.2 (20 Apr 2005 22:58:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 22:58:41 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Apr 21 00:58:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOO9Q-0003r1-GR for guile-devel@m.gmane.org; Thu, 21 Apr 2005 00:58:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOOE0-0004CF-VM for guile-devel@m.gmane.org; Wed, 20 Apr 2005 19:03:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DONei-0008Qa-Ri for guile-devel@gnu.org; Wed, 20 Apr 2005 18:26:48 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DONeg-0008Pg-QL for guile-devel@gnu.org; Wed, 20 Apr 2005 18:26:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DONeg-0007fU-Kc for guile-devel@gnu.org; Wed, 20 Apr 2005 18:26:46 -0400 Original-Received: from [61.8.0.84] (helo=mailout1.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DONft-00088o-QE for guile-devel@gnu.org; Wed, 20 Apr 2005 18:28:02 -0400 Original-Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86]) by mailout1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j3KMPcJu017000 for ; Thu, 21 Apr 2005 08:25:38 +1000 Original-Received: from localhost (ppp2834.dyn.pacific.net.au [61.8.40.52]) by mailproxy1.pacific.net.au (8.12.3/8.12.3/Debian-7.1) with ESMTP id j3KMPbIn016656 for ; Thu, 21 Apr 2005 08:25:37 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1DONdP-0000tp-00; Thu, 21 Apr 2005 08:25:27 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:4913 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4913 I added a bit to scm_c_define_gsubr about not changing the rest arg. Existing: If RST is non-zero, then any arguments after the first `REQ + OPT' are packaged up as a list and passed as FUNCTION's last argument. Add: FUNCTION must not modify that list. (Because when subr is called through `apply' the list comes directly from the `apply' list argument. This list is copied when dispatching to a scheme procedure, but not when going to a subr.) _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel