From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: overriding car/cdr (was: Worrying development) Date: Sun, 25 Jan 2004 21:42:39 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: References: <1074246064.6729.23.camel@localhost> <87vfn9ufvw.fsf@zagadka.ping.de> <400FF648.3080706@dirk-herrmanns-seiten.de> <200401221842.KAA20956@morrowfield.regexps.com> <40110961.1040808@dirk-herrmanns-seiten.de> <200401231716.JAA26107@morrowfield.regexps.com> <87oesus7kg.fsf@zagadka.ping.de> <20040124120954.GB6589@www> <87k73hpj9n.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1075085237 5041 80.91.224.253 (26 Jan 2004 02:47:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Jan 2004 02:47:17 +0000 (UTC) Cc: guile-user@gnu.org, rm@fabula.de, guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 26 03:47:11 2004 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 1AkwmM-0007UM-01 for ; Mon, 26 Jan 2004 03:47:11 +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 1Akwjb-00079s-0z for guile-devel@m.gmane.org; Sun, 25 Jan 2004 21:44:19 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AkwiY-0006vG-6f for guile-devel@gnu.org; Sun, 25 Jan 2004 21:43:14 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Akwi1-0006nq-Bl for guile-devel@gnu.org; Sun, 25 Jan 2004 21:43:12 -0500 Original-Received: from [129.22.104.62] (helo=lewis.CNS.CWRU.Edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Akwi0-0006ng-Sa for guile-devel@gnu.org; Sun, 25 Jan 2004 21:42:40 -0500 Original-Received: from conversion-daemon.smtp-b.cwru.edu by smtp-b.cwru.edu (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) id <0HS200J01SKOGK@smtp-b.cwru.edu> for guile-devel@gnu.org; Sun, 25 Jan 2004 21:42:40 -0500 (EST) Original-Received: from multivac.cwru.edu (multivac.ITS.CWRU.Edu [129.22.114.26]) by smtp-b.cwru.edu (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0HS200HCXSV4JC@smtp-b.cwru.edu> for guile-devel@gnu.org; Sun, 25 Jan 2004 21:42:40 -0500 (EST) Original-Received: (qmail 13102 invoked by uid 500); Mon, 26 Jan 2004 02:43:01 +0000 In-reply-to: <87k73hpj9n.fsf@zagadka.ping.de> Original-To: Marius Vollmer Mail-followup-to: Marius Vollmer , rm@fabula.de, guile-user@gnu.org, guile-devel@gnu.org Mail-Copies-To: nobody User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (gnu/linux) Original-Lines: 14 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:3312 gmane.lisp.guile.user:2720 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2720 Marius Vollmer wrote: > Hmm, my immediate reaction is that car/cdr are too low-level for > making them overrideable, but map and for-each and other operations > that work on whole sequences look like good targets... Going that route, there will always be one more function that someone wants to be converted. Third-party libraries also often won't be able to handle generated lists without modification. OTOH, by modifying SCM_CAR/SCM_CDR, everything that handles lists automatically becomes able to handle generated lists, and the cost for normal lists is only the same cost as when compiling with -DSCM_DEBUG_PAIR_ACCESSES=1. paul _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel