"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