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
no_scan_tag and int array
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-03-07 (14:07)
From: ygrek <ygrekheretix@g...>
Subject: Re: [Caml-list] no_scan_tag and int array
On Sun, 07 Mar 2010 01:48:51 +0100
Goswin von Brederlow <> wrote:

> What polymorphic array function? I don't think Array.length is a good
> test as it looks at the header of the array to see how many words the
> array has.

Sure, I've tested this elsewhere with Array.iter and other. Array.length here is just to
keep the array alive.

> > GC correctly reclaims array memory when it is not referenced anymore.
> > Apparantly this trick is not allowed for float array as they have a special tag set.
> But does the GC scan float arrays?