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.8 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id C09BFBC69 for ; Wed, 11 Apr 2007 13:00:20 +0200 (CEST) Received: from mail.rsise.anu.edu.au (mail.rsise.anu.edu.au [150.203.208.4]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3BB0HAx011486 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 11 Apr 2007 13:00:20 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id 03F465472B for ; Wed, 11 Apr 2007 20:59:57 +1000 (EST) Received: from mail.rsise.anu.edu.au ([150.203.208.4]) by localhost (mail [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01319-04 for ; Wed, 11 Apr 2007 20:59:56 +1000 (EST) Received: from pulp.rsise.anu.edu.au (pulp.rsise.anu.edu.au [150.203.208.49]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id E15B954724 for ; Wed, 11 Apr 2007 20:59:50 +1000 (EST) Received: by pulp.rsise.anu.edu.au (Postfix, from userid 1560) id 0FFC8A0AFC7; Wed, 11 Apr 2007 20:59:49 +1000 (EST) Date: Wed, 11 Apr 2007 20:59:49 +1000 From: Pietro Abate To: ocaml ml Subject: (old) camlp4 question Message-ID: <20070411105949.GA7707@pulp.rsise.anu.edu.au> Mail-Followup-To: Pietro Abate , ocaml ml MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: GNU/Linux X-Organization: Research School of Information Science and Engineering (Australian National University) User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mail.rsise.anu.edu.au X-Miltered: at discorde with ID 461CBFC1.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 ctyp:01 ctyp:01 syntax:01 blog:98 blog:98 int:01 int:01 philosophy:02 incorrect:06 suppose:08 bernard:10 powerpoint:10 anu:11 Hi all, I want to write a type like this in camlp4 : type ('a,'b) b = [ `T of 'b ] type a = ('b,int) b as 'b Suppose I have a list of ctyp [<:ctyp< 'b >>;<:ctyp< int >>; ... ] How can I write the type ('b,int) b as 'b ?? I've tried with <:ctyp< type a = b ($list:l$) as 'b >> but the result is incorrect ... what is the right syntax ? pietro -- ++ Blog: http://blog.rsise.anu.edu.au/?q=pietro ++ ++ "All great truths begin as blasphemies." -George Bernard Shaw ++ Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html