From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Keith Wright Newsgroups: gmane.lisp.guile.user Subject: Re: number->string radix patch Date: Mon, 10 May 2004 23:51:27 -0400 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <200405110351.i4B3pRVl002666@fcs10.free-comp-shop.com> References: <20040103221857.GA518@Richard-Todds-Computer.local> <20040104035022.GA742@Richard-Todds-Computer.local> <3FF88AD5.6010701@vzavenue.net> <87isjr1bkb.fsf@alice.rotty.yi.org> <3FF8EF71.6090802@vzavenue.net> <20040105200131.GA492@Richard-Todds-Computer.local> <20040106184116.GA7618@Richard-Todds-Computer.local> <87fza8c976.fsf@zagadka.ping.de> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084247220 29418 80.91.224.253 (11 May 2004 03:47:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 03:47:00 +0000 (UTC) Cc: ruhl@4dv.net, guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 11 05:46:49 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 1BNOED-00082C-00 for ; Tue, 11 May 2004 05:46: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 1BNOCv-0000lb-7s for guile-user@m.gmane.org; Mon, 10 May 2004 23:45:29 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNOCX-0000l7-EJ for guile-user@gnu.org; Mon, 10 May 2004 23:45:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNOC1-0000fO-4S for guile-user@gnu.org; Mon, 10 May 2004 23:45:04 -0400 Original-Received: from [216.254.0.206] (helo=mail6.speakeasy.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1BNOC0-0000fJ-Mh for guile-user@gnu.org; Mon, 10 May 2004 23:44:33 -0400 Original-Received: (qmail 16600 invoked from network); 11 May 2004 03:44:31 -0000 Original-Received: from dsl092-074-188.bos1.dsl.speakeasy.net (HELO free-comp-shop.com) ([66.92.74.188]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 11 May 2004 03:44:31 -0000 Original-Received: from fcs10.free-comp-shop.com (localhost.localdomain [127.0.0.1]) by free-comp-shop.com (8.12.8/8.12.8) with ESMTP id i4B3pSO0002668; Mon, 10 May 2004 23:51:28 -0400 Original-Received: (from kwright@localhost) by fcs10.free-comp-shop.com (8.12.8/8.12.8/Submit) id i4B3pRVl002666; Mon, 10 May 2004 23:51:27 -0400 Original-To: mvo@zagadka.de In-reply-to: <87fza8c976.fsf@zagadka.ping.de> (message from Marius Vollmer on Mon, 10 May 2004 22:34:53 +0200) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3161 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3161 > From: Marius Vollmer > Cc: Robert Uhl , guile-user@gnu.org > > Richard Todd writes: > > Ok, I have finally installed your patch. Thanks again! (I wrote a > basic ChangeLog entry, but please do that yourself for the next > patch.) > > I used your examples as test cases, but cannot reproduce some: > guile> (number->string 1.324e44 16) > "5.EFE0A14FAFDF8e24" > > The first looks certainly wrong, but I'm not sure about the other two. > Richard, could you try to investigate this? The third one worries me too. Does this use the case of the #\E (or #\e) to differentiate a hex digit from an exponent marker? Scheme (or SCHEME) is supposed to be case insensitive, and I would not want to break that useful and expected propery just to get this rather special purpose "extension". Maybe, since the Scheme report does not specify an exponent mark for hex numbers, some other character should be chosen (after all, it no longer means ten-to-the-power, but rather sixteen-to-the-power). Or else hex constants could be required to have an exponent marker of either S (short) or L (long). Unfortunately F and D (single and double) have the same problem as E Does this patch also change STRING->NUMBER to accept the extended syntax? What about in program text? -- Keith _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user