akovalenko/sbcl-win32-threads — Issue #17: (the (values double-float double-float) ... doesn't work as expected
Author: syakovyn
Created: 2012-02-01 12:54:34+00:00
State: open

Hello,

I have the following code

(the (values double-float double-float) (let ((result (ffloor 1d0 1d0))) result))

that throws an exception:
Value set
[1.0d0]
from RESULT in
(THE (VALUES DOUBLE-FLOAT DOUBLE-FLOAT)
(LET (#)
RESULT))
is not of type
(VALUES DOUBLE-FLOAT DOUBLE-FLOAT &REST T).
[Condition of type SIMPLE-TYPE-ERROR]

Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [TERMINATE-THREAD] Terminate this thread (#)

Though, when I use (the (values double-float double-float) 1.0d0) it works well. Somehow involving "let" changes the things drastically.

Thanks,
Serhiy Y