Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] 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: Jonathan Harrop <jdh30@j...>
Subject: Re: [Caml-list] Line number for index out of bounds
On Mon Mar  6 11:14 , Richard Jones <rich@annexia.org> sent:
>* Surround every possible array index with a try ... with expression

Perhaps you could write a camlp4 macro to wrap uses of a.(i) in a try ... with block that logs the 
line number?

Cheers,
Jon.