Pierre Weis wrote: >>in the following kind code : >> >>let l = ... a function building a long list ... in >>let l' = List.map fn l in (* or fold or anything similar *) >>... no more reference to l ... >> >>Once the beginning of l has been read to compute l' (assuming List.map >>starts from the beginning of l) is the GC able to collect the beginning >>of l ? And let l' = let l = ... a function building a long list ... in List.map fn l in should work then (it is simpler to read than composition) ? -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature ---------------------------------------------