English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Arrays and boxed/unboxed data
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-07-08 (15:25)
From: Tom <tom.primozic@g...>
Subject: Re: [Caml-list] Arrays and boxed/unboxed data
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

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.