pika-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pika-dev] Guile FFI: resizable vector problem


From: Matthew Dempsky
Subject: Re: [Pika-dev] Guile FFI: resizable vector problem
Date: Sat, 31 Jan 2004 13:38:48 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Andreas Rottmann <address@hidden> writes:

> The next thing I ran into: Guile has dropped resizable vectors some
> time ago. A rationale can be found in [0]. The argument seems sound to
> me, so what about Pika -- won't resizable vectors yield the same
> problem wrt to threading? For now, I'll just work around that by
> making scm_set_n_vector_elts() create a new vector.

Pika's FFI will handle resizable vectors and threading fine because
users never get pointers to the vector contents -- they can only do
vector-ref and vector-set! operations on them.

Having scm_set_n_vector_elts create a new vector and copy elements
would be the Right Thing to do for this.

-jivera




reply via email to

[Prev in Thread] Current Thread [Next in Thread]