[plt-scheme] Bug in write?

From: Saint Katsmall T. Wise, Esquire (kela_bit at netvision.net.il)
Date: Mon Jul 7 20:31:24 EDT 2003

#3(-14 2) is a vector of length three which has -14 and 2 as the first 
two parts and 2 for the rest.
Thus, #3(-14 2) is in fact the same as #3(-14 2 2). write outputs it as 
#3(-14 2) because for program-readabilty it is enough, and display 
outputs it as human readable #3(-14 2 2).

Katsmall T. Wise, Esquire

Manfred Wuttke wrote:

>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>Hello,
>In learning Scheme I found the following behaviour with DrScheme204 on Linux.
>It seems that write has a bug (see the last vector #3(-14 2 ?)):
>
>#3(#3(-6 4 2) #3(6 0 10) #3(-14 2 2))
>; => #3(#3(-6 4 2) #3(6 0 10) #3(-14 2))  
>(write #3(#3(-6 4 2) #3(6 0 10) #3(-14 2 2)))
>; => #3(#3(-6 4 2) #3(6 0 10) #3(-14 2))
>(newline)
>(display #3(#3(-6 4 2) #3(6 0 10) #3(-14 2 2)))
>; => #(#(-6 4 2) #(6 0 10) #(-14 2 2)) ; ok
>
>Manfred Wuttke
>
>  
>




Posted on the users mailing list.