#1: prin1 and ~E produce different outputs.
------------------------+---------------------------------------------------
Reporter: anonymous | Owner: somebody
Type: defect | Status: new
Priority: minor | Milestone:
Component: component1 | Version:
Keywords: printing |
------------------------+---------------------------------------------------
(let ((x (random 1d-3)))
(values (prin1-to-string x) (format nil "~E" x)))
will produce different significant digits. I think the problem is in ~E
which calls lisp::scale-exponent to scale the number between 0.1 and 1. I
think we could just call flonum-to-digits which will give us the digits
and the exponent. We can massage that into the desired digits and
exponent as in scale-exponent, but we won't have the round-off problem.
Maybe.
--
Ticket URL: <http://trac.common-lisp.net/cmucl/ticket/1>
cmucl <http://common-lisp.net/project/cmucl>
cmucl
#4: symbol-macrolet + ignorable causes internal compiler error.
--------------------+-------------------------------------------------------
Reporter: rtoy | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone:
Component: Core | Version: 19c
Keywords: |
--------------------+-------------------------------------------------------
The following causes an internal type error in the compiler because the
compiler was expecting some kind of list:
{{{
* (symbol-macrolet ((a 42))
(declare (ignorable a))
4711)
Type-error in KERNEL::OBJECT-NOT-TYPE-ERROR-HANDLER:
(SYSTEM:MACRO . 42) is not of type C::LAMBDA-VAR
[Condition of type TYPE-ERROR]
}}}
Reported on cmucl-imp, 2006/05/20.
--
Ticket URL: <http://trac.common-lisp.net/cmucl/ticket/4>
cmucl <http://common-lisp.net/project/cmucl>
cmucl