From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 45626BB81 for ; Mon, 10 Oct 2005 15:18:33 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9ADIWRE004917 for ; Mon, 10 Oct 2005 15:18:32 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA23286 for ; Mon, 10 Oct 2005 15:18:32 +0200 (MET DST) Received: from triton.rz.uni-saarland.de (triton.rz.uni-saarland.de [134.96.7.25]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j9ADIVcs004907 for ; Mon, 10 Oct 2005 15:18:32 +0200 Received: from mail.cs.uni-sb.de (mail.cs.uni-sb.de [134.96.254.200]) by triton.rz.uni-saarland.de (8.12.10/8.12.10) with ESMTP id j9ADIUn84250125; Mon, 10 Oct 2005 15:18:30 +0200 (CEST) Received: from mail.st.cs.uni-sb.de (goscinny.cs.uni-sb.de [134.96.235.32]) by mail.cs.uni-sb.de (8.13.5/2005092000) with ESMTP id j9ADIUdr000437; Mon, 10 Oct 2005 15:18:30 +0200 (CEST) X-Authentication-Warning: mail.cs.uni-sb.de: Host goscinny.cs.uni-sb.de [134.96.235.32] claimed to be mail.st.cs.uni-sb.de Received: from [134.96.235.101] (jonagold.cs.uni-sb.de [134.96.235.101]) by mail.st.cs.uni-sb.de (Postfix) with ESMTP id 0D0C01BD84; Mon, 10 Oct 2005 15:18:30 +0200 (CEST) In-Reply-To: <3133367.1128947557941.JavaMail.www@wwinf1521> References: <3133367.1128947557941.JavaMail.www@wwinf1521> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: Caml List From: Christian Lindig Subject: Re: [Caml-list] possible to define a type where = is forbidden ? Date: Mon, 10 Oct 2005 15:18:28 +0200 To: padator@wanadoo.fr X-Mailer: Apple Mail (2.623) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.1 (triton.rz.uni-saarland.de [134.96.7.25]); Mon, 10 Oct 2005 15:18:30 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter 1.0.6; AVE 6.32.0.8; VDF 6.32.0.72 X-Miltered: at nez-perce with ID 434A6A28.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 434A6A27.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lindig:01 lindig:01 caml-list:01 tokens:01 caml-list:01 2005,:98 wrote:01 uni-sb:01 define:01 strings:01 strings:01 thread:02 caml:02 ast:02 ast:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On Oct 10, 2005, at 2:32 PM, yoann padioleau wrote: > I am making a program analysis tool and in my AST I had previously > tokens represented as strings, > but now I want also to associate the line numbers of those strings. I like to suggest a different technique that does not require to change the representation of all branches in an AST. You can find it in an earlier posting here: http://caml.inria.fr/pub/ml-archives/caml-list/2003/09/ f81c8063ed4878e06f1ddd8010256050.en.html The posting is part of a thread that also discusses some disadvantages. -- Christian