The argument makes no sense since inlining would also affect MODULE, FILE, etc. It seems more like an omission. -Yotam On Mon, Jun 1, 2015 at 1:38 PM, Gustave Nimant wrote: > On 01/06/2015 18:46, Francois Berenger wrote: > >> >>> It seems that the functions described in >>> http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html >>> do not answer my question : >>> "how to get the name of the current function ?" >>> >> >> It is currently not possible. >> >> There is no __FUNCTION__ like you have in C. >> I was also quite interested by this feature a long time ago. >> For loggers it is quite useful. >> >> I cannot find the thread back, I don't know where to search the archives >> of caml-list. >> Gabriel Scherer mentioned there is not always a function name since >> they can be inlined by the compiler, if I remember correctly. >> > I hope the argument of the inlining case is not serious, is it ? > > Best, > 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 >