Browse thread
Re: Where did the exception occur?
[
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: | Mattias Waldau <mattias.waldau@t...> |
| Subject: | RE: Where did the exception occur? |
Static analysis wouldn't have help me in my case, since I know that I can get Not_found in 10 different places. Of cource, I could catch each of these at their location, and raise a specific exception for each. This, however, would mess up the code. /mattias -----Original Message----- From: Pierre.Weis@inria.fr [mailto:Pierre.Weis@inria.fr]On Behalf Of Damien Doligez Sent: Tuesday, October 31, 2000 11:14 AM To: caml-list@inria.fr Subject: Re: Where did the exception occur? >From: "David McClain" <dmcclain@azstarnet.com> >I found that the location of the exception is rarely the source of >a problem... Indeed, this discussion started because of an uncaught "Not_found". Most likely, this is raised by Hashtbl.find, List.assoc, or String.index (there are a few other). Knowing exactly which one is unlikely to help very much. I don't like the idea of adding run-time information just for the case when you cannot run the debugger, especially if it incurs a lot of overhead. IMO, it would be more interesting to make the debugger work for embedded code. In the short term, static analysis seems to be the way to go. -- Damien