[EMAIL PROTECTED] (Ludovic Courtès) writes:

>   $ guile-1.7
>   guile> (make-uniform-array #\a 10)
>   "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
>   guile> (make-uniform-array #\nul 10)
>   #s8(15 -44 -17 16 16 4 118 8 0 0)
>   guile> (make-uniform-array #\001 10)
>   "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
>
> All the results differ.  Notably, Guile 1.7 fails to properly initialize
> the arrays returned.

Yep, that was a bug in dimensions->uniform-array, which didn't handle
an omitted 'fill' parameter correctly.  The result was that not array
created with make-uniform-array was initialized.

Thanks for spotting this!

But note that make-uniform-array is deprecated in 1.7 and the
imminent 1.8; use make-typed-array instead:

   guile> (make-typed-array 's8 0 10)
   #s8(0 0 0 0 0 0 0 0 0 0)

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405


_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to