bugGNU Common Lisp - Bugs: bug #17402, *READ-BASE* affects how floats are...

 
 

bug #17402: *READ-BASE* affects how floats are read

Submitted by:  None
Submitted on:  Fri 11 Aug 2006 05:48:54 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 15 Sep 2006 08:06:48 PM UTC, comment #1:

Greetings! Fixed in 2.6.8pre and cvs head.
Take care,

Camm Maguire <camm>
Project Administrator
Fri 11 Aug 2006 05:48:54 AM UTC, original submission:

Hello,

I'm using GCL 2.6.7 ANSI on Linux. I find that READ-BASE affects the
way floats are parsed, which appears to be contrary to what CLHS
says about READ-BASE:

"The value of read-base, called the current input base, is the radix
in which integers and ratios are to be read by the Lisp reader.
The parsing of other numeric types (e.g., floats) is not affected by this option."

Example session:

>(setq read-base 3)

3

>'3.3

|3.3|

>(type-of *)

SYMBOL

>'3e3

|3E3|

>(type-of *)

SYMBOL

For comparison, both SBCL and Clisp return floats for '3.3 and '3e3.

For what it's worth,
Robert Dodier

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 15 Sep 2006 08:06:48 PM UTCcammStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1