caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Vesa Karvonen" <vesa.karvonen@housemarque.fi>
To: <caml-list@inria.fr>
Subject: [Caml-list] line number for assert
Date: Tue, 11 Sep 2001 12:39:17 +0300	[thread overview]
Message-ID: <001301c13aa5$9ffff090$422aa8c0@housemarque.fi> (raw)

Hi,

The assert primitive of Ocaml 3.02 (windows version) seems to print the source
file location as an offset from the beginning of the file rather than as a
line number and column.

Is there a particular reason for this?

The reason why I'm asking this is that it makes it much more difficult to find
the right assertion on most editors.

Is there a simple way to overcome this limitation?

I was thinking of the possibility of preprocessing the source code with some
simple preprocessor and using a home brewn assertion procedure, but I'd like
to hear about simpler solutions.

Regards,
  Vesa Karvonen


-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-09-11  9:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-11  9:39 Vesa Karvonen [this message]
2001-09-11  9:51 ` David Mentre
2001-09-11 10:06   ` Markus Mottl
2001-09-13  0:14     ` SooHyoung Oh
2001-09-13  8:46       ` Markus Mottl
2001-09-11 10:53   ` Sven
2001-09-11 13:49     ` Christian Lindig
2001-09-11 14:41   ` Vesa Karvonen

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='001301c13aa5$9ffff090$422aa8c0@housemarque.fi' \
    --to=vesa.karvonen@housemarque.fi \
    --cc=caml-list@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).