From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel Subject: gh_inexact_p error in 1.7.x Date: Wed, 30 Nov 2005 16:16:22 -0800 Organization: GNU Message-ID: <200511301616.22258.bkorb@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133396312 28458 80.91.229.2 (1 Dec 2005 00:18:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Dec 2005 00:18:32 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Dec 01 01:18:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ehc8W-0000XN-0V for guile-devel@m.gmane.org; Thu, 01 Dec 2005 01:17:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ehc8V-0005dM-3o for guile-devel@m.gmane.org; Wed, 30 Nov 2005 19:17:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ehc7e-0005FZ-Vx for guile-devel@gnu.org; Wed, 30 Nov 2005 19:16:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ehc7c-0005Dq-Ka for guile-devel@gnu.org; Wed, 30 Nov 2005 19:16:26 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ehc7a-0005Da-T7 for guile-devel@gnu.org; Wed, 30 Nov 2005 19:16:24 -0500 Original-Received: from [207.115.57.60] (helo=ylpvm29.prodigy.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ehc7a-0004zp-OT for guile-devel@gnu.org; Wed, 30 Nov 2005 19:16:22 -0500 Original-Received: from pimout4-ext.prodigy.net (pimout4-int.prodigy.net [207.115.4.203]) by ylpvm29.prodigy.net (8.12.10 outbound/8.12.10) with ESMTP id jB10GXto027038 for ; Wed, 30 Nov 2005 19:16:33 -0500 X-ORBL: [69.226.209.231] Original-Received: from [192.168.1.4] (adsl-69-226-209-231.dsl.pltn13.pacbell.net [69.226.209.231]) by pimout4-ext.prodigy.net (8.13.4 outbound domainkey aix/8.13.4) with ESMTP id jB10GLCR204264 for ; Wed, 30 Nov 2005 19:16:21 -0500 Original-To: guile-devel@gnu.org User-Agent: KMail/1.7.1 Content-Disposition: inline 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:5442 Archived-At: Hi Rob et al., Now for something completely different. Obviously, I have not yet updated my code to figure out what sort of thing it is that I got back from my eval call. Nevertheless, my understanding was that you ought to be able to call WHATEVER_p with any bit pattern and have it say, "Yes, it is" or "No, it is not" without a fail-exit. Not true in Guile 1.7.2. Is this fixed? Thanks! - Bruce typ = (SCM) 0x504 28 LOCAL teGuileType 29 gh_type_e( SCM typ ) - 30 { - 31 if (gh_boolean_p( typ )) return GH_TYPE_BOOLEAN; - 32 if (gh_symbol_p( typ )) return GH_TYPE_SYMBOL; - 33 if (gh_char_p( typ )) return GH_TYPE_CHAR; - 34 if (gh_vector_p( typ )) return GH_TYPE_VECTOR; - 35 if (gh_pair_p( typ )) return GH_TYPE_PAIR; - 36 if (gh_number_p( typ )) return GH_TYPE_NUMBER; - 37 if (AG_SCM_STRING_P( typ )) return GH_TYPE_STRING; - 38 if (gh_procedure_p( typ )) return GH_TYPE_PROCEDURE; - 39 if (gh_list_p( typ )) return GH_TYPE_LIST; - 40 if (gh_inexact_p( typ )) return GH_TYPE_INEXACT; <<=== throws error - 41 if (gh_exact_p( typ )) return GH_TYPE_EXACT; 42 - 43 return GH_TYPE_UNDEFINED; - 44 } _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel