From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dirk Herrmann Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: overriding car/cdr Date: Sun, 08 Feb 2004 17:21:56 +0100 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <40266224.1030606@dirk-herrmanns-seiten.de> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076257564 5471 80.91.224.253 (8 Feb 2004 16:26:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2004 16:26:04 +0000 (UTC) Cc: guile-user@gnu.org, rm@fabula.de, guile-devel@gnu.org, Marius Vollmer Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Feb 08 17:25:51 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 1Aprkk-0004r8-00 for ; Sun, 08 Feb 2004 17:25:51 +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 1Aprih-0007oq-2V for guile-devel@m.gmane.org; Sun, 08 Feb 2004 11:23:43 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ApriD-0007je-JD for guile-devel@gnu.org; Sun, 08 Feb 2004 11:23:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aprhd-0007Yu-LC for guile-devel@gnu.org; Sun, 08 Feb 2004 11:23:08 -0500 Original-Received: from [212.227.126.177] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aprh7-0007K5-1H; Sun, 08 Feb 2004 11:22:05 -0500 Original-Received: from [212.227.126.207] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1Aprh3-0007dI-00; Sun, 08 Feb 2004 17:22:01 +0100 Original-Received: from [80.131.32.203] (helo=dirk-herrmanns-seiten.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1Aprh3-0006Ef-00; Sun, 08 Feb 2004 17:22:01 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030821 X-Accept-Language: de, en Original-To: Paul Jarc In-Reply-To: X-Enigmail-Version: 0.76.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:494e3e4d1bf8dc247959c49e6f1f4215 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:3348 gmane.lisp.guile.user:2768 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2768 Paul Jarc wrote: >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. > The macros SCM_CAR and SCM_CDR should IMO not changed to handle generic pairs. In the guile kernel we need a layer to deal with the built-in low level data types. Best regards Dirk _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel