From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Re: typechecking Date: Wed, 26 May 2004 19:40:53 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <16564.54949.13882.819772@localhost.localdomain> References: <16486.52591.672130.224861@localhost.localdomain> <87brkwc6f7.fsf@zagadka.ping.de> <16544.2271.454230.492574@localhost.localdomain> <40A5DFF2.80004@dirk-herrmanns-seiten.de> Reply-To: hanwen@xs4all.nl 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 1085595059 27750 80.91.224.253 (26 May 2004 18:10:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 May 2004 18:10:59 +0000 (UTC) Cc: guile-devel@gnu.org, Marius Vollmer Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 26 20:10:50 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 1BT2rZ-0006Nv-00 for ; Wed, 26 May 2004 20:10:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BT2Nc-0001Bd-AQ for guile-devel@m.gmane.org; Wed, 26 May 2004 13:39:52 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BT2Ld-0000fY-QH for guile-devel@gnu.org; Wed, 26 May 2004 13:37:49 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BT2L3-0000XJ-RW for guile-devel@gnu.org; Wed, 26 May 2004 13:37:44 -0400 Original-Received: from [213.84.26.127] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BT2L3-0000Wu-64 for guile-devel@gnu.org; Wed, 26 May 2004 13:37:13 -0400 Original-Received: from localhost.localdomain.byrd.xs4all.nl (byrd [127.0.0.1]) by localhost.localdomain (8.12.11/8.12.11) with ESMTP id i4QHer9Y027903; Wed, 26 May 2004 19:40:53 +0200 Original-To: Dirk Herrmann In-Reply-To: <40A5DFF2.80004@dirk-herrmanns-seiten.de> X-Mailer: VM 7.14 under Emacs 21.3.1 X-yoursite-MailScanner-Information: Please contact the ISP for more information X-yoursite-MailScanner: Found to be clean X-MailScanner-From: hanwen@xs4all.nl X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.4 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:3760 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:3760 dirk@dirk-herrmanns-seiten.de writes: > > > > What's the rationale for not allowing direct use in conditional > > tests? > > Code like the following: > > void f (SCM obj) > { > if (obj) { > /* do something */ > } > } > > is almost always wrong, since what the user typically wants to check is, > whether obj is SCM_BOOL_F or not: It would be interesting to see if we could map the Scheme semantics (true = !SCM_BOOL_F) to C. That would require mapping SCM_BOOL_F to (void*)0x0. Is this desirable, and does anyone see a possibility for this? -- Han-Wen Nienhuys | hanwen@xs4all.nl | http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel