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: a circular dilemma . #0# (was Re: srfi-1 map!) Date: Sat, 15 Nov 2003 05:28:04 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87brrebvi3.fsf@zip.com.au> References: <87ptfzpwwb.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068838174 16367 80.91.224.253 (14 Nov 2003 19:29:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Nov 2003 19:29:34 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Nov 14 20:29:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AKjdM-0000t6-00 for ; Fri, 14 Nov 2003 20:29:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AKkaR-0003zD-3q for guile-devel@m.gmane.org; Fri, 14 Nov 2003 15:30:35 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AKkaD-0003yz-Og for guile-devel@gnu.org; Fri, 14 Nov 2003 15:30:21 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AKkZZ-0003qJ-U2 for guile-devel@gnu.org; Fri, 14 Nov 2003 15:30:13 -0500 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AKkZZ-0003pk-5V for guile-devel@gnu.org; Fri, 14 Nov 2003 15:29:41 -0500 Original-Received: from mongrel.pacific.net.au (mongrel.pacific.net.au [61.8.0.107]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hAEJSCV0028971 for ; Sat, 15 Nov 2003 06:28:12 +1100 Original-Received: from localhost (ppp22.dyn228.pacific.net.au [203.143.228.22]) by mongrel.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id hAEJQtDJ021880 for ; Sat, 15 Nov 2003 06:26:56 +1100 Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 1AKjbw-0004i6-00; Sat, 15 Nov 2003 05:28:04 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:3019 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3019 Stephen Compall writes: > > (define (s11-map! f list1 . rest) If you want to write some code, copying and adapting the current C code would probably be much better. > Or just > live with "undefined behavior" given by the silly (IMHO) case of > having a circular as LIST1 where a list in REST has more cells? I see the spec calls for list2 etc to have at least as many elements as list1. Which I guess means list1 is finite (ie. non-circular) and can be used to construct the return without further checking. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel