Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Looking for a real array
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-29 (15:46)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] Looking for a real array
On Tue, 29 Apr 2003, Hal Daume III wrote:
> > to use the Bigarray module unless you need very large arrays. Normal
> > float arrays, too, are unboxed, but only when the compiler can infer at
> > compile time that they are guaranteed to be float arrays.
> Does this also apply if I have an abstract type defined in another module:
>   > type foo = float
> and then have a foo array?

No, because the compiler cannot see then that it is a float when the
type is abstract. Internally (in the module implementation) however,
the compiler may well use unboxed foo arrays.

Markus Mottl

Markus Mottl

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: