From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Kraft Newsgroups: gmane.lisp.guile.devel Subject: Re: truth of %nil Date: Wed, 01 Jul 2009 08:45:45 +0200 Message-ID: <4A4B0619.5070006@domob.eu> References: <87k52uvhnt.fsf@arudy.ossau.uklinux.net> <873a9hl5uf.fsf@arudy.ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1246430755 2294 80.91.229.12 (1 Jul 2009 06:45:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 1 Jul 2009 06:45:55 +0000 (UTC) Cc: Andy Wingo , guile-devel To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jul 01 08:45:47 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLtZi-00063v-Uh for guile-devel@m.gmane.org; Wed, 01 Jul 2009 08:45:47 +0200 Original-Received: from localhost ([127.0.0.1]:36000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLtZi-0004u5-CU for guile-devel@m.gmane.org; Wed, 01 Jul 2009 02:45:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLtZc-0004t6-3x for guile-devel@gnu.org; Wed, 01 Jul 2009 02:45:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLtZX-0004ok-1z for guile-devel@gnu.org; Wed, 01 Jul 2009 02:45:39 -0400 Original-Received: from [199.232.76.173] (port=39691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLtZW-0004oF-Sm for guile-devel@gnu.org; Wed, 01 Jul 2009 02:45:34 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:58962) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MLtZW-0006Mq-7C for guile-devel@gnu.org; Wed, 01 Jul 2009 02:45:34 -0400 Original-Received: from tatiana.utanet.at ([213.90.36.46]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLtZT-0003I6-UC for guile-devel@gnu.org; Wed, 01 Jul 2009 02:45:32 -0400 Original-Received: from paris.xoc.tele2net.at ([213.90.36.7]) by tatiana.utanet.at with esmtp (Exim 4.69) (envelope-from ) id 1MLtZO-0001GF-3R; Wed, 01 Jul 2009 08:45:26 +0200 Original-Received: from d86-33-197-124.cust.tele2.at ([86.33.197.124] helo=[192.168.1.18]) by paris.xoc.tele2net.at with esmtpa (Exim 4.69) (envelope-from ) id 1MLtZO-0002mK-0o; Wed, 01 Jul 2009 08:45:26 +0200 User-Agent: Thunderbird 2.0.0.0 (X11/20070425) Original-Newsgroups: gmane.lisp.guile.devel In-Reply-To: <873a9hl5uf.fsf@arudy.ossau.uklinux.net> X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.lisp.guile.devel:8810 Archived-At: Hi Neil, Neil Jerram wrote: > Andy Wingo writes: >> Guile has treated %nil as false for quite some time: >> >> scheme@(guile-user)> ,o interp #t >> scheme@(guile-user)> (if %nil 1 2) >> $1 = 2 > > I'm sorry... you're completely right. Brain storm on my part. > > But then I don't understand the cause of your suggestion. Is it that > master has somehow regressed, so as to cause (if %nil 1 2) => 1 ? it seems so. Doing just a scheme@(guile-user)> (if %nil 1 2) 1 with a recent build (of at least my elisp branch, but that did not change anything in this respect of course) gives that answer. Doing ,o interp #t as Andy did however also gives the right answer for me. BTW, I've just changed my elisp compiler to use real nil instead of #f for nil, but now it doesn't have the right semantics of course (that's the motivation here). Yours, Daniel