From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 22D54BB84 for ; Thu, 11 Sep 2008 14:00:35 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUCALKkyEjAXQImiGdsb2JhbACSZAEBAQ8gpSuBZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="14826155" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 11 Sep 2008 14:00:34 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m8BC0Qlq017967 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 11 Sep 2008 14:00:34 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: As0AALKkyEiB1xBmmmdsb2JhbACSZAEBAQEBCAUIBxEFpSaBZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="29062120" Received: from treacle.ucs.ed.ac.uk ([129.215.16.102]) by mail4-smtp-sop.national.inria.fr with ESMTP; 11 Sep 2008 14:00:34 +0200 Received: from lmtp2.ucs.ed.ac.uk (lmtp2.ucs.ed.ac.uk [129.215.149.71]) by treacle.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id m8BC0VA7009312; Thu, 11 Sep 2008 13:00:31 +0100 (BST) Received: from smtp.sms.ed.ac.uk (mailfe6.ucs.ed.ac.uk [129.215.149.74]) by lmtp2.ucs.ed.ac.uk (8.13.8/8.13.7) with ESMTP id m8BC0SDB003259; Thu, 11 Sep 2008 13:00:31 +0100 (BST) Received: from host86-155-98-163.range86-155.btcentralplus.com (host86-155-98-163.range86-155.btcentralplus.com [86.155.98.163]) by www.sms.ed.ac.uk (Horde MIME library) with HTTP; Thu, 11 Sep 2008 13:00:28 +0100 Message-ID: <20080911130028.12z0ml44ysg84k8k@www.sms.ed.ac.uk> Date: Thu, 11 Sep 2008 13:00:28 +0100 From: Jeremy Yallop To: ?????? ??????? Cc: Caml List Subject: Re: [Caml-list] Camlp4. print variable value to target source. References: <1221128186.15737.10.camel@serphost.localdomain> In-Reply-To: <1221128186.15737.10.camel@serphost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Edinburgh-Scanned: at treacle.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-Scanned-By: MIMEDefang 2.60 on 129.215.16.102 X-Scanned-By: MIMEDefang 2.52 on 129.215.149.71 X-Miltered: at discorde with ID 48C9085A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ctyp:01 expr:01 ctyp:01 caml-list:01 int:01 int:01 quoting:02 let:03 let:03 variable:06 target:91 i'm:09 curious:09 body:89 Quoting ?????? ??????? : > Exitst any way to do such things? > > ------ > let t = <:ctyp> in > <:str_item> I think that you're looking for this: let t = <:expr< <:ctyp> >> in <:str_item> although I'm curious as to why. Jeremy. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.