[plt-scheme] make-u8vector bug

From: jos koot (jos.koot at telefonica.net)
Date: Sat Feb 17 08:09:22 EST 2007

Hi,
Procedure make-u8vector of (lib "4.ss" "srfi")) initializes the first 
element only. See example below.

Welcome to DrScheme, version 369.8-svn16feb2007 [3m].
Language: Textual (MzScheme, includes R5RS) custom
(require (lib "4.ss" "srfi"))
(define v (make-u8vector 3 255))
(u8vector-ref v 0) ; --> 255
(u8vector-ref v 1) ; --> 0 in stead of 255
(u8vector-ref v 2) ; --> 0 in stead of 255

(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))
    (lambda(x)(lambda(y)(x(x y)))))
   (lambda(x)(x)x))
  (lambda()(printf "Greetings, Jos~n")))) 



Posted on the users mailing list.