From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#11887: string->number edge cases Date: Wed, 06 Mar 2013 11:55:30 -0500 Message-ID: <876214bh8d.fsf@tines.lan> References: <2FCE97E1-EAFB-4623-B118-1C9D46C7805B@bluewin.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362589011 14320 80.91.229.3 (6 Mar 2013 16:56:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 16:56:51 +0000 (UTC) Cc: 11887@debbugs.gnu.org To: Daniel Llorens Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 06 17:57:15 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDHeQ-0004O5-Kl for guile-bugs@m.gmane.org; Wed, 06 Mar 2013 17:57:10 +0100 Original-Received: from localhost ([::1]:43563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDHe4-0004Oj-LN for guile-bugs@m.gmane.org; Wed, 06 Mar 2013 11:56:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:42226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDHdw-0004JX-Gb for bug-guile@gnu.org; Wed, 06 Mar 2013 11:56:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDHds-0008IJ-Hb for bug-guile@gnu.org; Wed, 06 Mar 2013 11:56:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDHds-0008IE-A5 for bug-guile@gnu.org; Wed, 06 Mar 2013 11:56:36 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDHeI-000326-9p for bug-guile@gnu.org; Wed, 06 Mar 2013 11:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 06 Mar 2013 16:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11887 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 11887-submit@debbugs.gnu.org id=B11887.136258897811604 (code B ref 11887); Wed, 06 Mar 2013 16:57:02 +0000 Original-Received: (at 11887) by debbugs.gnu.org; 6 Mar 2013 16:56:18 +0000 Original-Received: from localhost ([127.0.0.1]:34495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDHdY-000316-Mp for submit@debbugs.gnu.org; Wed, 06 Mar 2013 11:56:17 -0500 Original-Received: from world.peace.net ([96.39.62.75]:50385 ident=hope3) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDHdV-00030u-9U for 11887@debbugs.gnu.org; Wed, 06 Mar 2013 11:56:15 -0500 Original-Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UDHcw-0006dj-D3; Wed, 06 Mar 2013 11:55:38 -0500 In-Reply-To: <2FCE97E1-EAFB-4623-B118-1C9D46C7805B@bluewin.ch> (Daniel Llorens's message of "Tue, 5 Mar 2013 21:33:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:6860 Archived-At: Daniel Llorens writes: > I think this isn't working as it should either. > > scheme@(guile-user)> +1i > $1 = 0.0+1.0i > scheme@(guile-user)> 1i > ;;; : warning: possibly unbound variable `#{1i}#' > ERROR: In procedure #: > ERROR: In procedure module-lookup: Unbound variable: #{1i}# No, this is correct. Scheme requires a sign before an imaginary part. See R5RS section 7.1.1 (Lexical structure). Thanks, Mark --8<---------------cut here---------------start------------->8--- -> | | | The following rules for , , , , , and should be replicated for R = 2, 8, 10, and 16. There are no rules for , , and , which means that numbers containing decimal points or exponents must be in decimal radix. -> -> | @ | + i | - i | + i | - i | + i | - i | + i | - i -> -> | / | -> | . + #* | + . * #* | + #+ . #* -> + #* -> | -> | + -> e | s | f | d | l -> | + | - -> | #i | #e -> #b -> #o -> | #d -> #x -> 0 | 1 -> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 -> -> | a | b | c | d | e | f --8<---------------cut here---------------end--------------->8---