From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 898177EEF6 for ; Thu, 4 Jun 2015 20:48:07 +0200 (CEST) X-IronPort-AV: E=Sophos;i="5.13,554,1427752800"; d="scan'208";a="163212150" Received: from mail-yk0-f177.google.com ([209.85.160.177]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 04 Jun 2015 20:48:07 +0200 Received: by ykfl8 with SMTP id l8so17045541ykf.1; Thu, 04 Jun 2015 11:48:05 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.236.37.4 with SMTP id x4mr41487163yha.89.1433443685748; Thu, 04 Jun 2015 11:48:05 -0700 (PDT) Received: by 10.37.215.83 with HTTP; Thu, 4 Jun 2015 11:48:05 -0700 (PDT) In-Reply-To: <556D64EC.7060800@inria.fr> References: <556C4512.2050002@free.fr> <556C89F3.3000206@free.fr> <556D64EC.7060800@inria.fr> Date: Thu, 4 Jun 2015 14:48:05 -0400 Message-ID: From: Damien Doligez To: Francois Berenger Cc: caml-list@inria.fr Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] getting the name of a function from its body On Tue, Jun 2, 2015 at 4:10 AM, Francois Berenger 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