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
[Caml-list] line number for assert
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-11 (09:36)
From: Vesa Karvonen <vesa.karvonen@h...>
Subject: [Caml-list] line number for assert
Hi,

The assert primitive of Ocaml 3.02 (windows version) seems to print the source
file location as an offset from the beginning of the file rather than as a
line number and column.

Is there a particular reason for this?

The reason why I'm asking this is that it makes it much more difficult to find
the right assertion on most editors.

Is there a simple way to overcome this limitation?

I was thinking of the possibility of preprocessing the source code with some
simple preprocessor and using a home brewn assertion procedure, but I'd like
to hear about simpler solutions.

Regards,
  Vesa Karvonen


-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr