caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Arrays and boxed/unboxed data
@ 2006-07-06  0:27 Erik de Castro Lopo
  2006-07-06 13:54 ` [Caml-list] " Eric Cooper
  0 siblings, 1 reply; 4+ messages in thread
From: Erik de Castro Lopo @ 2006-07-06  0:27 UTC (permalink / raw)
  To: caml-list

Hi all,

I'm about to start some work on an algorithm which will need a 
quite large 2-D array of Ocaml ints.

I assume that Arrays of ints will be unboxed. Is that correct?

What about other types? For instance:

    type my_enum = A | B | C

If I made an array of my_enum would that be unboxed?

Is there any general rule that will tell me what is boxed and
what is unboxed? If I define an Array of some data type is
there a way of figuring this out?

TIA,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"I want to make sure (a user) can't get through ... an online
experience without hitting a Microsoft ad."
 - Microsoft CEO, Steve Ballmer on the Microsoft search engine.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-07-09 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06  0:27 Arrays and boxed/unboxed data Erik de Castro Lopo
2006-07-06 13:54 ` [Caml-list] " Eric Cooper
2006-07-08 15:25   ` Tom
2006-07-09 13:59     ` Jon Harrop

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).