You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm learning through those koans now and I found small mistake:
in test-adjutable-arrays, after the (adjust-array x '(3 4)) the last assert is testing for uninitialized element. According to hyperspecs, the behavior here is undefined, thus probably SBCL specific.
The array after adjusting is: #2A((5 5 0 0) (5 5 0 0) (0 0 0 0)) in SBCL, that's somewhat counter intuitive, I'd expect NILs, not zeroes. It would be nice to put either a comment stating it's SBCL-specific when reading uninitialised element, or perhaps add :initial-element to that adjust-array.
Cheers.
The text was updated successfully, but these errors were encountered:
Hi, I'm learning through those koans now and I found small mistake:
in test-adjutable-arrays, after the
(adjust-array x '(3 4))
the last assert is testing for uninitialized element. According to hyperspecs, the behavior here is undefined, thus probably SBCL specific.The array after adjusting is:
#2A((5 5 0 0) (5 5 0 0) (0 0 0 0))
in SBCL, that's somewhat counter intuitive, I'd expectNIL
s, not zeroes. It would be nice to put either a comment stating it's SBCL-specific when reading uninitialised element, or perhaps add:initial-element
to thatadjust-array
.Cheers.
The text was updated successfully, but these errors were encountered: