[cmucl] #93: 4d-324 signals a reader error but shouldn't?

#93: 4d-324 signals a reader error but shouldn't? --------------------+------------------------------------------------------- Reporter: rtoy | Owner: somebody Type: defect | Status: new Priority: major | Milestone: Component: Core | Version: 2014-02 Keywords: | --------------------+------------------------------------------------------- At the repl, 4d-324 throws a reader error. But the nearest float to 4d-324 is {{{least-positive-double-float}}} so we should probably return that instead of throwing an error. But values less than {{{0.5 * least-positive-double-float}}} could be rounded to 0, but I think the reader error is still appropriate. CLHS 2.3.1.1 says exponents that are out of range should signal a reader error. -- Ticket URL: <http://trac.common-lisp.net/cmucl/ticket/93> cmucl <http://common-lisp.net/project/cmucl> Cmucl is a high-performance, free Common Lisp implementation.

#93: 4d-324 signals a reader error but shouldn't? ---------------------+------------------------------------------------------ Reporter: rtoy | Owner: somebody Type: defect | Status: closed Priority: major | Milestone: Component: Core | Version: 2014-02 Resolution: fixed | Keywords: ---------------------+------------------------------------------------------ Changes (by toy.raymond@…): * status: new => closed * resolution: => fixed Comment: commit f9be60b19ca38fbbf34dc64bf5442f119afe2725 Author: Raymond Toy <toy.raymond@gmail.com> Date: Sat Mar 1 08:43:26 2014 -0800 Fix ticket 93. * Round the number to least-positive-foo-float when possible, but still throw an error if it's too small but not zero. * Update comments to mention CLHS 2.3.1.1. -- Ticket URL: <http://trac.common-lisp.net/cmucl/ticket/93#comment:1> cmucl <http://common-lisp.net/project/cmucl> Cmucl is a high-performance, free Common Lisp implementation.
participants (1)
-
cmucl