From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: The future: accessing vectors, arrays, etc from C Date: Tue, 04 Jan 2005 02:51:26 +0100 Message-ID: <87ekh2m069.fsf@zagadka.de> References: <87acrvq1h5.fsf@zagadka.de> <87hdlydoh4.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1104803954 23106 80.91.229.6 (4 Jan 2005 01:59:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jan 2005 01:59:14 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jan 04 02:59:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CldyU-0000WX-00 for ; Tue, 04 Jan 2005 02:59:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cle9e-0007I0-Vh for guile-user@m.gmane.org; Mon, 03 Jan 2005 21:10:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cle9b-0007Hq-FN for guile-user@gnu.org; Mon, 03 Jan 2005 21:10:35 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cle9a-0007HW-RW for guile-user@gnu.org; Mon, 03 Jan 2005 21:10:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cle9a-0007HM-OD for guile-user@gnu.org; Mon, 03 Jan 2005 21:10:34 -0500 Original-Received: from [195.253.8.218] (helo=mail.dokom.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cldr6-0001SN-4c for guile-user@gnu.org; Mon, 03 Jan 2005 20:51:28 -0500 Original-Received: from [195.138.45.63] (helo=zagadka.ping.de) by mail.dokom.net with smtp (Exim 4.34) id 1Cldr4-0001XQ-S7 for guile-user@gnu.org; Tue, 04 Jan 2005 02:51:27 +0100 Original-Received: (qmail 9924 invoked by uid 1000); 4 Jan 2005 01:51:26 -0000 Original-To: Kevin Ryde In-Reply-To: <87hdlydoh4.fsf@zip.com.au> (Kevin Ryde's message of "Tue, 04 Jan 2005 11:31:19 +1100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3987 Kevin Ryde writes: > Marius Vollmer 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 now... -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user