[Top][All Lists]

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

Re: The future: accessing vectors, arrays, etc from C

From: Marius Vollmer
Subject: Re: The future: accessing vectors, arrays, etc from C
Date: Tue, 04 Jan 2005 02:51:26 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Kevin Ryde <address@hidden> writes:

> Marius Vollmer <address@hidden> writes:
>>     scm_t_array_dimension *dim;
>>         for (i = 0; i <= dim->len; i++, elts += dim->inc)
> Will that be i < dim->len?

Yes, right.

> And scm_t_array_dimension will have something about the logical low
> and high index values, in case you have an array starting from 1 or 5
> or 10 or whatever?

Yes, exactly.

Right now, I use the existing scm_t_array_dim.  But maybe one can come
up with something better, like having a lower bound and a length
instead of lower and upper bounds.

I have implemented this interface in CVS head now, and there is some
documentation about it, but everything is in a lot of flux right

GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405

reply via email to

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