caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Aleksey Nogin <nogin@cs.caltech.edu>
To: Damien Doligez <damien.doligez@inria.fr>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] 3.07: debug information on camlp4-processed files is missing the file name?
Date: Tue, 06 Jan 2004 21:47:23 -0800	[thread overview]
Message-ID: <3FFB9D6B.6020704@cs.caltech.edu> (raw)
In-Reply-To: <54D8B96E-3FBC-11D8-BEFF-00039310CAE8@inria.fr>

On 05.01.2004 12:18, Damien Doligez wrote:

> You can try this patch, developed by Artem Prysyznuk.  We haven't
> incorporated it because we are doing extensive changes to camlp4
> to deal correctly with new-style locations.  Please let me know
> whether it works for you.

It works, but produces results that are slightly (but insignificantly) 
different from the ones that I get without camlp4. For example:

with camlp4:

> Raised by primitive operation at file "unify_mm.ml", line 1, character 20504
> Re-raised at file "unify_mm.ml", line 1, character 22067
> Called from file "unify_mm.ml", line 1, character 27263
...

Without:

> Fatal error: exception Out_of_memory
> Raised by primitive operation at file "unify_mm.ml", line 560, character 63
> Re-raised at file "unify_mm.ml", line 595, character 11
> Called from file "unify_mm.ml", line 707, character 76
...

Character 20504 in the file is indeed "line 560, character 63", but 
"character 22067" is not the same as "line 595, character 11".

the code in question is:

          ...
       else begin
          if ...

and non-camlp4 "line 595, character 11" one points to the space between 
"else" and "begin", while camlp4's "character 22067" points to the space 
right before the "if".

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?

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


  reply	other threads:[~2004-01-07  5:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-05 19:27 Aleksey Nogin
2004-01-05 20:18 ` Damien Doligez
2004-01-07  5:47   ` Aleksey Nogin [this message]
2004-01-07 12:50     ` Damien Doligez
2004-01-08  1:29       ` Aleksey Nogin
2004-01-08  8:17   ` Stefano Zacchiroli
2004-01-08  9:49     ` Damien Doligez
2004-01-08 15:38       ` skaller
2004-01-09 10:46         ` Damien Doligez
2004-01-10 11:15           ` skaller
2004-01-09  8:41       ` Stefano Zacchiroli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FFB9D6B.6020704@cs.caltech.edu \
    --to=nogin@cs.caltech.edu \
    --cc=caml-list@inria.fr \
    --cc=damien.doligez@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).