caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Tom <tom.primozic@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Arrays and boxed/unboxed data
Date: Sat, 8 Jul 2006 17:25:47 +0200	[thread overview]
Message-ID: <c1490a380607080825n41cb8e4axd7943bdb36ebec24@mail.gmail.com> (raw)
In-Reply-To: <20060706135408.GA19446@localhost>

[-- Attachment #1: Type: text/plain, Size: 431 bytes --]

However, assuming you need a 2 dimensional array, that is int array array,
the second array will be boxed (elements of the first array will be pointers
to another array, but elements of these, secondary, arrays will be unboxed
integers).

You could probably use one dimensional array and use a modified getter and
setter functions that would transform 2-D indeces into 1-D indeeces. In this
way, all the elements would be unboxed.

[-- Attachment #2: Type: text/html, Size: 444 bytes --]

  reply	other threads:[~2006-07-08 15:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  0:27 Erik de Castro Lopo
2006-07-06 13:54 ` [Caml-list] " Eric Cooper
2006-07-08 15:25   ` Tom [this message]
2006-07-09 13:59     ` Jon Harrop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c1490a380607080825n41cb8e4axd7943bdb36ebec24@mail.gmail.com \
    --to=tom.primozic@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).