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

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] exceptions
> > Fatal error: exception Not_found
> > Raised at file "test.ml", line 1, character 15
> 
> This doesn't work for me :(  I compile with ocamlc -g.  After starting
> the program, I get
> 
> Fatal error: exception Failure("nth")
> Raised at module Pervasives, character 1086
> Called from module Foo, character 2711
> 
> What am I doing wrong?  My ocaml is version 3.06.

You need 3.07 to get file names and line numbers in backtraces.  
In 3.06 and earlier, M-x goto-char is your friend...

- Xavier Leroy

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners