[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: Src question
On Tue, Oct 24, 2000 at 01:51:45PM -0400, Robert John Andersen wrote:
> On Tue, 24 Oct 2000, Matthew Flatt wrote:
> > Since RJA is asking about the C-level interface, maybe he means the
> > vector is going to be filled by the allocating C function before being
> > exposed to Scheme code.
> >
>
> Yeah, that is what I'm doing. I'm interfacing to some calls that have a
> character array and I'm using the vector as the representation in the
> scheme code and they rarely have the same element in them so the extra fill
> for the creation of the vector doesn't get me anything. Sorry for the
> confusing post.
[Snip!]
Have you considered using a string instead of a vector? It may be a better
match to an array of characters, since each character in a vector still
takes up 4 bytes instead of one.
Paul Graunke