From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 1E3E9BC32 for ; Tue, 8 Mar 2005 19:17:34 +0100 (CET) Received: from orsfmr004.jf.intel.com (fmr19.intel.com [134.134.136.18]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j28IHW0N003174 for ; Tue, 8 Mar 2005 19:17:33 +0100 Received: from orsfmr101.jf.intel.com (orsfmr101.jf.intel.com [10.7.209.17]) by orsfmr004.jf.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j28IHUv1020361; Tue, 8 Mar 2005 18:17:30 GMT Received: from orsmsxvs040.jf.intel.com (orsmsxvs040.jf.intel.com [192.168.65.206]) by orsfmr101.jf.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j28IGVtf013429; Tue, 8 Mar 2005 18:17:30 GMT Received: from orsmsx331.amr.corp.intel.com ([192.168.65.56]) by orsmsxvs040.jf.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005030810172909511 ; Tue, 08 Mar 2005 10:17:29 -0800 Received: from orsmsx407.amr.corp.intel.com ([192.168.65.50]) by orsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 8 Mar 2005 10:17:29 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [Caml-list] SML->OCaml Date: Tue, 8 Mar 2005 10:17:28 -0800 Message-ID: <012676D607FCF54E986746512C22CE7D031B264B@orsmsx407> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] SML->OCaml Thread-Index: AcUjvvp2v/ONALjpSiyKHppPtKoq7QAS8MMQ From: "Harrison, John R" To: "Andreas Rossberg" Cc: X-OriginalArrivalTime: 08 Mar 2005 18:17:29.0816 (UTC) FILETIME=[16F28580:01C5240B] X-Scanned-By: MIMEDefang 2.44 X-Miltered: at nez-perce with ID 422DEC3C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 johnh:01 rossberg:01 constructors:01 implicitly:01 ocaml's:01 datatype:01 sml:01 sml:01 ...:98 ...:98 writes:01 signatures:01 constructor:01 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Andreas Rossberg writes: | In fact, it would be much more complicated. First, identifier | status is scoped. Constructors are frequently defined locally. In | particular, this may happen implicitly through the use of "open". | To derive the required information you hence needed to perform a | complete binding analysis, including modules and signatures. | [...] Thanks, that's a good explanation. Ocaml's case convention almost starts to look like a good idea when you see the alternatives... | In summary, to deal with constructor status correctly (not to mention | stuff like datatype replication, local, records, user-defined fixity, | etc.) you basically need half an SML frontend. It seems out of scope | for a Camlp4 hack to be more than a simple approximation. Can you recommend any SML frontend that I could, more or less trivially, use to systematically munge uppercase identifier names and spit out the program again? John.