From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: truth of %nil Date: Sun, 30 Aug 2009 12:20:20 +0100 Message-ID: <87eiqty2dn.fsf@arudy.ossau.uklinux.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1251631243 19201 80.91.229.12 (30 Aug 2009 11:20:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Aug 2009 11:20:43 +0000 (UTC) Cc: Andy Wingo , guile-devel To: "Mark H. Weaver" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Aug 30 13:20:36 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 1MhiSZ-0000kL-FO for guile-devel@m.gmane.org; Sun, 30 Aug 2009 13:20:35 +0200 Original-Received: from localhost ([127.0.0.1]:37044 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhiSY-0000WU-Nw for guile-devel@m.gmane.org; Sun, 30 Aug 2009 07:20:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MhiST-0000WP-2H for guile-devel@gnu.org; Sun, 30 Aug 2009 07:20:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MhiSN-0000Th-Jc for guile-devel@gnu.org; Sun, 30 Aug 2009 07:20:27 -0400 Original-Received: from [199.232.76.173] (port=57491 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MhiSN-0000TM-CB for guile-devel@gnu.org; Sun, 30 Aug 2009 07:20:23 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:2977) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MhiSN-0001nC-3i for guile-devel@gnu.org; Sun, 30 Aug 2009 07:20:23 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MhiSM-0004hE-G2 for guile-devel@gnu.org; Sun, 30 Aug 2009 07:20:22 -0400 Original-Received: from arudy (host86-152-99-133.range86-152.btcentralplus.com [86.152.99.133]) by mail3.uklinux.net (Postfix) with ESMTP id A75A21F678B; Sun, 30 Aug 2009 12:20:21 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id BFBEF38021; Sun, 30 Aug 2009 12:20:20 +0100 (BST) In-Reply-To: (Mark H. Weaver's message of "Wed\, 08 Jul 2009 09\:17\:26 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.4-2.6 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:9206 Archived-At: "Mark H. Weaver" writes: > I found one thorny use of scm_is_bool and scm_is_null, and request > your collective wisdom: > > scm_class_of() in goops.c tries to determine the class of a scheme > value. If scm_is_bool returns true, it's classified as > scm_class_boolean, and if scm_is_null returns true, it's classified as > scm_class_null. Right now, that code doesn't consider %nil at all. So currently the code (using your clarified APIs) gives scm_class_unknown, right? > How do you all think %nil should be handled by goops? Given the %nil concept, I suppose what matters is that a %nil value should be able to match both (define-method f (arg )) and (define-method f (arg )) That suggests to me that there should be a class that inherits from both and , and that (class-of %nil) should be . What do you think? Neil