English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2006-03-06 (13:11)
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?