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 Subject: Re: stumped by scm_car/scm_cdr Date: Mon, 08 Nov 2004 07:48:55 +0100 Message-ID: <418F16D7.6080906@dirk-herrmanns-seiten.de> References: <16724.44532.557784.986630@byrd.xs4all.nl> <87zn3e739g.fsf@zagadka.ping.de> <16725.64761.208412.328474@byrd.xs4all.nl> <16740.33606.743452.458667@byrd.xs4all.nl> <87ekkaxjmm.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 1099895316 4932 80.91.229.6 (8 Nov 2004 06:28:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Nov 2004 06:28:36 +0000 (UTC) Cc: Marius Vollmer Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Nov 08 07:28:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CR30m-0001P4-00 for ; Mon, 08 Nov 2004 07:28:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CR397-0000Lm-F7 for guile-devel@m.gmane.org; Mon, 08 Nov 2004 01:36:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CR391-0000Lg-Kp for guile-devel@gnu.org; Mon, 08 Nov 2004 01:36:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CR391-0000LU-5f for guile-devel@gnu.org; Mon, 08 Nov 2004 01:36:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CR391-0000LR-2e for guile-devel@gnu.org; Mon, 08 Nov 2004 01:36:51 -0500 Original-Received: from [212.227.126.176] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CR30S-0003KT-D4 for guile-devel@gnu.org; Mon, 08 Nov 2004 01:28:00 -0500 Original-Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1CR30R-0001Hz-00; Mon, 08 Nov 2004 07:27:59 +0100 Original-Received: from [80.131.32.45] (helo=dirk-herrmanns-seiten.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1CR30Q-0005Jo-00; Mon, 08 Nov 2004 07:27:58 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040220 X-Accept-Language: de, en Original-To: hanwen@xs4all.nl, jantien@xs4all.nl, guile-devel@gnu.org In-Reply-To: <87ekkaxjmm.fsf@zagadka.ping.de> X-Enigmail-Version: 0.76.8.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.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: main.gmane.org gmane.lisp.guile.devel:4362 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4362 Marius Vollmer wrote: > Han-Wen Nienhuys writes: > > > tried to remove all fishy looking places where SCM_C[AD]R were > > used, and now it seems to work OK. You might want to consider just > > doing abort() or a something similar as a standard. > > That would not fit SCM_CAR, SCM_CDR etc well. These macros are there > for code that knows what it does and wants to do it fast. You can > use SCM_DEBUG_CELL_ACCESSES to have them do some checks, however. > These checks will only assert that you access a cell, not whether > that cell represents a pair. Better use SCM_DEBUG_PAIR_ACCESSES, which does exactly the right thing here: It checks whether SCM_CAR etc. are really applied to a pair. Best regards Dirk Herrmann _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel