Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2002-01-28 (07:57)
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.


Bug reports:  FAQ:
To unsubscribe, mail  Archives: