[racket-dev] Out-of-range error from vector-copy

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jan 24 08:25:24 EST 2011

I took a look at the code. flvector-copy comes from vector-wraps.rkt.
vector-copy is implemented separately. All the vector code should be
moved into the one library but it's too much for me to take on at the
moment. Go for it, tiger :)

N.

On Sat, Jan 22, 2011 at 2:13 AM, Neil Toronto <neil.toronto at gmail.com> wrote:
> One of these things is not like the others:
>
>> (list-tail '(1 2 3) 3)
> '()
>> (substring "123" 3)
> ""
>> (subbytes #"123" 3)
> #""
>> (flvector-copy (flvector 1.0 2.0 3.0) 3)
> #<flvector>
>> (flvector-length (flvector-copy (flvector 1.0 2.0 3.0) 3))
> 0
>> (vector-copy #(1 2 3) 3)
> vector-copy: start index 3 out of range [0, 3] for vector: '#(1 2 3)
>
> Neil
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/dev
>


Posted on the dev mailing list.