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] Problem with ocamlc and recursive and parametrized classes
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-14 (10:45)
From: Frederic Tronel <Frederic.Tronel@i...>
Subject: [Caml-list] Problem with ocamlc and recursive and parametrized classes

I'm using ocaml version 3.06 for a industrial project.
I'm facing a well-known problem I think, that is related to
the use of recursive and parametrized classes.
Actually, adding a single line of code in one of my class generates
a hang up in the compilation process. The incriminated code is much too 
long to be posted on the list, and I'm not able to reproduce the 
phenomenon on smallest examples. But basically ocamlc seems to run in an 
long loop consuming more and more memory. After two or three minutes and 
more than 150Mo consumed, I stop the process.
Should I try to insist (is there any warranty on the finiteness of the 
compilation ?), should I try to simplify my code (not really possible at 
this point of the project). Is there any undocumented option of the 
compiler that could help track the problem ?

Thanks for any clue to solve this "embarassing" problem.

Best regards,


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