From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Bill Schottstaedt" Newsgroups: gmane.lisp.guile.bugs Subject: 0e as identifier Date: Sat, 2 Jan 2010 04:45:19 -0800 Message-ID: <20100102124123.M26871@ccrma.Stanford.EDU> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: ger.gmane.org 1262436340 6564 80.91.229.12 (2 Jan 2010 12:45:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Jan 2010 12:45:40 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Jan 02 13:45:33 2010 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NR3MK-0002pg-ED for guile-bugs@m.gmane.org; Sat, 02 Jan 2010 13:45:32 +0100 Original-Received: from localhost ([127.0.0.1]:55426 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR3MK-00066r-LL for guile-bugs@m.gmane.org; Sat, 02 Jan 2010 07:45:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NR3MF-00065f-Eg for bug-guile@gnu.org; Sat, 02 Jan 2010 07:45:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NR3MA-00060y-Of for bug-guile@gnu.org; Sat, 02 Jan 2010 07:45:26 -0500 Original-Received: from [199.232.76.173] (port=58634 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NR3MA-00060l-I0 for bug-guile@gnu.org; Sat, 02 Jan 2010 07:45:22 -0500 Original-Received: from smtp2.stanford.edu ([171.67.219.82]:59229 helo=smtp.stanford.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NR3MA-0004S3-5H for bug-guile@gnu.org; Sat, 02 Jan 2010 07:45:22 -0500 Original-Received: from smtp.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 3ABF6170648 for ; Sat, 2 Jan 2010 04:45:20 -0800 (PST) Original-Received: from cm-mail.stanford.edu (cm-mail.Stanford.EDU [171.64.197.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id F1FC2170500 for ; Sat, 2 Jan 2010 04:45:19 -0800 (PST) Original-Received: from ccrma.Stanford.EDU (localhost.localdomain [127.0.0.1]) by cm-mail.stanford.edu (8.13.8/8.13.8) with ESMTP id o02CjJ1b004882 for ; Sat, 2 Jan 2010 04:45:19 -0800 X-Mailer: OpenWebMail 2.53 X-OriginatingIP: 71.198.184.220 (bil) X-Virus-Scanned: ClamAV 0.94/10248/Fri Jan 1 14:09:50 2010 on cm-mail.stanford.edu X-Virus-Status: Clean X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4419 Archived-At: I believe r5rs says an identifier can't start with a digit, but guile allows it to: scheme@(guile-user)> (symbol? (make-symbol "0")) #t scheme@(guile-user)> (symbol->string (make-symbol "0")) "0" scheme@(guile-user)> (keyword? (symbol->keyword (string->symbol "0"))) #t scheme@(guile-user)> (symbol? (string->symbol "0e0")) #t which leads one naively to: scheme@(guile-user)> (let ((0e 1)) 0e) 1 scheme@(guile-user)> (let ((0e0 1)) 0e0) Not a bug, I guess, but not very pretty. (r6rs says an identifier "begins with a character that cannot begin a representation of a number object." I think they meant "a sequence of characters").