Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Damien Doligez <damien.doligez@inria.fr>
To: Francois Berenger <francois.berenger@inria.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] getting the name of a function from its body
Date: Thu, 4 Jun 2015 14:48:05 -0400	[thread overview]
Message-ID: <CALGm1VhmjFvHn8frpw7KPKS5XAkW3KomFbfvxDX_NeE3QXMLhg@mail.gmail.com> (raw)
In-Reply-To: <556D64EC.7060800@inria.fr>

On Tue, Jun 2, 2015 at 4:10 AM, Francois Berenger
<francois.berenger@inria.fr> wrote:

> Then, the triplet (__FILE__, __LINE__, __FUNCTION__) is unique in OCaml.

No, because you can be in several functions at the same time, or in a
function that has no name, or even in several nameless functions. This
has nothing to do with inlining or any compilation technique, it's
about the language itself.

-- Damien

  parent reply	other threads:[~2015-06-04 18:48 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
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 [this message]
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=CALGm1VhmjFvHn8frpw7KPKS5XAkW3KomFbfvxDX_NeE3QXMLhg@mail.gmail.com \
    --to=damien.doligez@inria.fr \
    --cc=caml-list@inria.fr \
    --cc=francois.berenger@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