[plt-scheme] make-u8vector bug

From: jos koot (jos.koot at telefonica.net)
Date: Sat Feb 17 10:30:57 EST 2007

Hi Eli,
Thanks.
I forgot to mention that I work with windows XP.
Jos

(((((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"))))
----- Original Message ----- 
From: "Eli Barzilay" <eli at barzilay.org>
To: "jos koot" <jos.koot at telefonica.net>
Cc: "PLT-list" <plt-scheme at list.cs.brown.edu>
Sent: Saturday, February 17, 2007 4:24 PM
Subject: Re: [plt-scheme] make-u8vector bug


> On Feb 17, jos koot wrote:
>> Hi,
>> Procedure make-u8vector of (lib "4.ss" "srfi")) initializes the first 
>> element only. See example below.
> 
> It works fine for me, perhaps there is some platform specific bug -- I
> added this in the test suite to see if it happens elsewhere.
> 
>> 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)) (lambda (x) (x x)))          Eli Barzilay:
>                  http://www.barzilay.org/                 Maze is Life!
>


Posted on the users mailing list.