From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p72CL97K009984 for ; Tue, 2 Aug 2011 14:21:09 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnYGAB/rN05auLfF/2dsb2JhbABCmFGQB4F/QD0WGAMCAQIBWAgCh2qgWqA0hkIEmAKLXw X-IronPort-AV: E=Sophos;i="4.67,306,1309730400"; d="scan'208";a="104510196" Received: from 0405ds1-vaer.0.fullrate.dk (HELO fw.fugmann.net) ([90.184.183.197]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 02 Aug 2011 14:21:04 +0200 Received: from [10.0.1.142] (unknown [87.54.60.37]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by fw.fugmann.net (Postfix) with ESMTPSA id 0307A40017 for ; Tue, 2 Aug 2011 14:21:02 +0200 (CEST) Message-ID: <4E37EBA3.6040800@fugmann.net> Date: Tue, 02 Aug 2011 14:20:51 +0200 From: Anders Fugmann User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Validation-by: af@issuu.com Subject: [Caml-list] filename and line number. Hi, Do there exist a way to get filename and linenumber of the calling function - Or at least the of the current filename and line number? I guess this would involve a syntax camlp4 syntax extension, but I'm not a camlp4 wizard and google did not come up with any suggestions. Regards Anders Fugmann