From: Yamagata Yoriyuki <yoriyuki@mbg.ocn.ne.jp>
To: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Q: Correct locations for macro camlp4 extensions
Date: Fri, 03 Sep 2004 23:37:04 +0900 (JST) [thread overview]
Message-ID: <20040903.233704.59679919.yoriyuki@mbg.ocn.ne.jp> (raw)
In-Reply-To: <1093258774.15255.267.camel@pelican.wigram>
From: skaller <skaller@users.sourceforge.net>
Subject: Re: [Caml-list] Q: Correct locations for macro camlp4 extensions
Date: 23 Aug 2004 20:59:34 +1000
> On Mon, 2004-08-23 at 19:33, Jan Kybic wrote:
> > The problem with them is that the line numbers are lost,
> > which is a problem for error and assert messages, I get thinks like
> > Assert_failure("patch.ml", 1, 4798) instead of correct
> > Assert_failure("patch.ml", 155, 4)
>
> Use Ocaml 3.08. From change list on web site:
>
> Camlp4:
> * Support for new-style locations (line numbers, not just character numbers).
Does camlp4 really report the correct line number? I ask because my
program exits after "failwith" call, but the backtrace prints the
location which does not correspond the call of failwith either in the
original source, or in the camlp4 pretty printed code.
I use only stream parser in this program. There is no other syntax
extension used. The syntax is original ocaml, not revised one. Am I
missing somthing?
--
Yamagata Yoriyuki
-------------------
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
next prev parent reply other threads:[~2004-09-03 14:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-23 9:33 Jan Kybic
2004-08-23 10:59 ` skaller
2004-09-03 14:37 ` Yamagata Yoriyuki [this message]
2004-09-04 2:12 ` skaller
2004-08-23 17:21 ` Michael Alexander Hamburg
2004-08-23 18:29 ` Richard Jones
2004-08-23 20:33 ` David Brown
2004-08-23 21:53 ` skaller
2004-08-23 23:16 ` Michael Alexander Hamburg
2004-08-24 7:43 ` Marcin 'Qrczak' Kowalczyk
2004-08-24 7:02 ` [Caml-list] " Jan Kybic
2004-08-24 16:31 ` Michael Alexander Hamburg
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=20040903.233704.59679919.yoriyuki@mbg.ocn.ne.jp \
--to=yoriyuki@mbg.ocn.ne.jp \
--cc=caml-list@pauillac.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).