From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
Cc: Gustave Nimant <gustave.nimant@free.fr>,
Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] getting the name of a function from its body
Date: Mon, 1 Jun 2015 13:52:34 +0200 [thread overview]
Message-ID: <CAPFanBF25FK06vS1AqEVH0QtyZ9RVVAmpxWNh0tLhVusRhQeNQ@mail.gmail.com> (raw)
In-Reply-To: <CAHvkLrOgF3VYS5dZpvQupfzV16gHEQ5g_-h4OFZursp0rpbB7g@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]
"Recent" is 4.02 in that case -- although the implementors forgot to
indicate it as such using @since tags in the documentation.
On Mon, Jun 1, 2015 at 1:46 PM, Fabrice Le Fessant <
Fabrice.Le_fessant@inria.fr> wrote:
> Recent versions of OCaml provide "__LOC__", "__FILE__", "__LINE__",
> "__MODULE__" and "__POS__" primitives that can be used to display
> precise error messages.
>
> --Fabrice
>
> On Mon, Jun 1, 2015 at 1:42 PM, Gustave Nimant <gustave.nimant@free.fr>
> wrote:
> > Hello,
> >
> > is there any way in OCaml to get the name of a function from its body, in
> > order to write precise error messages for instance ?
> >
> > Regards
> > Gustave
> >
> > --
> > Caml-list mailing list. Subscription management and archives:
> > https://sympa.inria.fr/sympa/arc/caml-list
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>
> --
> Fabrice LE FESSANT
> Chercheur en Informatique
> INRIA Paris Rocquencourt -- OCamlPro
> Programming Languages and Distributed Systems
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 2435 bytes --]
next prev parent reply other threads:[~2015-06-01 11:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-01 11:42 Gustave Nimant
2015-06-01 11:46 ` Fabrice Le Fessant
2015-06-01 11:52 ` Gabriel Scherer [this message]
2015-06-01 16:36 ` Gustave Nimant
2015-06-01 16:46 ` Francois Berenger
2015-06-01 17:38 ` Gustave Nimant
2015-06-01 18:07 ` Yotam Barnoy
2015-06-01 21:57 ` Fabrice Le Fessant
2015-06-02 8:10 ` Francois Berenger
2015-06-02 8:21 ` Jacques Garrigue
2015-06-02 8:37 ` Romain Bardou
2015-06-04 18:48 ` Damien Doligez
2015-06-02 8:45 ` Gerd Stolpmann
2015-06-01 14:57 ` [Caml-list] Getting the list of available function within a module Nicolas Ratier
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=CAPFanBF25FK06vS1AqEVH0QtyZ9RVVAmpxWNh0tLhVusRhQeNQ@mail.gmail.com \
--to=gabriel.scherer@gmail.com \
--cc=Fabrice.Le_fessant@inria.fr \
--cc=caml-list@inria.fr \
--cc=gustave.nimant@free.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