Version française
Home     About     Download     Resources     Contact us    
Browse thread
Line number for index out of bounds
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alan Falloon <Al.Falloon@s...>
Subject: Re: [Caml-list] Line number for index out of bounds
Andries Hekstra wrote:
> This is better than a C++ program giving a segmentation fault, as one 
> now knows the reason of the crash.
> Of course, I am very curious in which line number of the program this 
> exception occurs.
> Is there any way to get hold of this line number?
Maybe ocamlexc can help:
http://caml.inria.fr/pub/old_caml_site/ocamlexc/ocamlexc.htm

It statically finds uncaught exceptions in your code.

--
Alan Falloon