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 mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 82AA1BB84 for ; Thu, 11 Sep 2008 14:03:24 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUCAFylyEjAXQIniGdsb2JhbACSZAEBAQ8gpSuBZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="17128076" Received: from concorde.inria.fr ([192.93.2.39]) by mail1-smtp-roc.national.inria.fr with ESMTP; 11 Sep 2008 14:03:24 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m8BC3Mae030602 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Thu, 11 Sep 2008 14:03:23 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwDABGmyEjCpx6vamdsb2JhbACSZA0FCAYSpSWBZA X-IronPort-AV: E=Sophos;i="4.32,379,1217800800"; d="scan'208";a="29062274" Received: from smtpka.univ-orleans.fr (HELO ka.univ-orleans.fr) ([194.167.30.175]) by mail4-smtp-sop.national.inria.fr with ESMTP; 11 Sep 2008 14:02:33 +0200 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by ka.univ-orleans.fr (Postfix) with ESMTP id E6B7412AD52; Thu, 11 Sep 2008 14:02:30 +0200 (CEST) Received: from [10.90.45.28] (dh-wireless.herts.ac.uk [147.197.190.5]) by smtps.univ-orleans.fr (Postfix) with ESMTP id F154136E60; Thu, 11 Sep 2008 14:02:32 +0200 (CEST) Subject: Re: [Caml-list] Camlp4. print variable value to target source. From: David Teller To: =?UTF-8?Q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=BB=D0=B0=D0=BA=D1=81=D0=B8=D0=BD?= Cc: Caml List In-Reply-To: <1221128186.15737.10.camel@serphost.localdomain> References: <1221128186.15737.10.camel@serphost.localdomain> Content-Type: text/plain; charset=utf-8 Date: Thu, 11 Sep 2008 13:02:30 +0100 Message-Id: <1221134550.6226.10.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 48C9090A.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 univ-orleans:01 ctyp:01 cheers:01 univ-orleans:01 lifo:01 W12:98 W14:98 liquidations:98 wrote:01 caml-list:01 int:01 int:01 ast:02 ast:02 On Thu, 2008-09-11 at 14:16 +0400, Сергей Плаксин wrote: > Exitst any way to do such things? > > ------ > let t = <:ctyp> in > <:str_item> > ---- > || > ----- > let t = Ast.TyId (_loc, Ast.IdLid (_loc, "int")); > ----- That doesn't look correctly typed. However, you can try replacing ?contents of t here? with $t$. Cheers, David -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller Angry researcher: French Universities need reforms, but the LRU act brings liquidations.