Browse thread
Re: Assert
- Damien Doligez
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Damien Doligez <Damien.Doligez@i...> |
| Subject: | Re: Assert |
>From: Ohad Rodeh <orodeh@cs.huji.ac.il> >Suppose one has a LARGE ocaml file, with several "assert" instructions. >When an assert exception occures, it is not an easy task to figure out >where it came from. Open the file in emacs. Go to the beginning of the file. Type <ESC> <number-of-characters> control-F. It works even if there are several assert expressions in the same line. The compiler doesn't keep track of the line number, so it cannot include it in the exception. -- Damien