From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id CF142BB83 for ; Wed, 5 Jul 2006 01:42:51 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k64Ngqf3009715 for ; Wed, 5 Jul 2006 01:42:52 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA19888 for ; Wed, 5 Jul 2006 01:42:51 +0200 (MET DST) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.206]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k64NgoC5009710 for ; Wed, 5 Jul 2006 01:42:51 +0200 Received: by nz-out-0102.google.com with SMTP id z3so572337nzf for ; Tue, 04 Jul 2006 16:42:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=GfzPd+fkdYR/NRBKD9eI5kWUSn2TC4DWXCk8j1FWI6lb4tSPHPoFeDaIG+bXX2okDK+pgpL3YmwlSE0HsfKW7//GJqzOuv/LVBP3FVO+44MSli7Sa454u/r3Tn126BXROQegJVCrq4/x2MUFl2rzAEGM4L+8i8M83oIiIdLZq4w= Received: by 10.36.138.15 with SMTP id l15mr4557465nzd; Tue, 04 Jul 2006 16:42:47 -0700 (PDT) Received: by 10.36.101.10 with HTTP; Tue, 4 Jul 2006 16:42:47 -0700 (PDT) Message-ID: Date: Wed, 5 Jul 2006 11:42:47 +1200 From: "Jonathan Roewen" To: "Matt Gushee" Subject: [Caml-list] camlp4 and manipulating types Cc: caml-list@inria.fr MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 44AAFCFA.000 on concorde : j-chkmail score : X : 0/20 1 X-Miltered: at concorde with ID 44AAFCFC.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44AAFCFA.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; camlp:01 mlast:01 cmo:01 syntax:01 polymorphic:01 caml-list:01 types:02 types:02 seems:03 problem:05 extension:05 lookup:07 load:08 although:08 i'm:08 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=RCVD_BY_IP autolearn=disabled version=3.0.3 > You also need to load q_Mlast.cmo. Ah, thanks! :-) It all seems to be working so far, although I'm wary of an upcoming problem: I want the methods I generate to have particular types (at the moment, they're polymorphic) which I will need to lookup from some source. e.g. say I have some way to indicate that the type of a method called url is to be 'option string', when my syntax extension sees it needs to create the method url, where can I get the type info from? Jonathan