|
Re: [Sbcl-help] LOOP local variable initialization
From: Andras Simon <asimon@ma...> - 2007-01-22 20:42
|
Juho Snellman <jsnell@...> writes: > Andras Simon <asimon@...> writes: > > > Macroexpanding the form > > > > (loop with foo of-type (single-float 1.0 2.0) = 1.5) > > > > fails with > > > > 0 can't be converted to type (SINGLE-FLOAT 1.0 2.0). > > [Condition of type SIMPLE-TYPE-ERROR] > > > > Where does this 0 come from? > > From LOOP-TYPED-INIT (in src/code/loop.lisp). OK, thanks, now I see where but not why, when the local variable is initialized by the user. Is this a bug or a DWIM thing (sometimes it's hard to tell those apart) or something else? Andras |
| Thread | Author | Date | |
|---|---|---|---|
| [Sbcl-help] LOOP local variable initialization | Andras Simon <asimon@ma...> |
|
|
|
|