Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] assert + -pp = wrong line number and filename in assert message
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Paul Stodghill <stodghil@c...>
Subject: Re: [Caml-list] assert + -pp = wrong line number and filename in assert message
> The "assert" construct generates an exception which contains the file
> name and line number where the "assert" appears.
> [ rest deleted ]

I should point out that the compiler does seem to respect '# line'
directives correctly when it comes to reporting syntax error. The
problem only appears to be with the assert construct.


milhouse$ cat bogus.ml 
this is totally bogus
milhouse$ ocamlc -c -pp './preproc.sh' bogus.ml 
File "bogus.ml", line 1, characters 0-4:
Unbound value this
milhouse$ 

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