Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Location in source code
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: [Caml-list] Location in source code

>Mathieu> Printf.printf "I had an error in module %s at line %d"
>Mathieu> __MODULE__ __LINE__
>Isn't this what assertions are for?

Except that assertions don't do this either.  :)  As has been mentioned a bunch of times on the list, assertions in caml only record the file position, and even then they don't seem to handle crlf issues properly on win32.

Anyway, this is a FAQ, search the archive.

Chris

-------------------
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