English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] 3.07: debug information on camlp4-processed files is missing the file name?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-01-08 (01:30)
From: Aleksey Nogin <nogin@c...>
Subject: Re: [Caml-list] 3.07: debug information on camlp4-processed files is missing the file name?
On 07.01.2004 04:50, Damien Doligez wrote:

> begin...end is like a pair of parentheses. [...]  I changed it
> in the yacc-based parser but not (yet) in the camlp4 parsers, hence
> the discrepancy.

Yes, that's what I figured, thanks!

>> P.S. Why would an exception (supposedly raised inside the "true" 
>> branch of an if) be re-raised at the end of the "if" branch?
> I don't know.  Maybe because the "inside" is a call to a primitive, and
> the "if branch" is the smallest OCaml expression that contains it ?

No, all the expressions were nested pretty deeply. But there were some 
"try ... with Not_found -> ..." nested there, so I am guessing one of 
them was causing the exception to be caught and re-raised...

Anyway, once I cleaned the code a bit, the weirdness went away. Now the 
only remaining weirdness that I see is that the innermost frame is 
missing from backtrace when the exception was raised from C - PR #2030; 
this one however is common to both 3.06 and 3.07+13 CVS.

Aleksey Nogin

Home Page: http://nogin.org/
E-Mail: nogin@cs.caltech.edu (office), aleksey@nogin.org (personal)
Office: Jorgensen 70, tel: (626) 395-2907

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