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.1 required=5.0 tests=AWL 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 82721BC0A for ; Mon, 12 Feb 2007 04:28:17 +0100 (CET) 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 l1C3SDEV013070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 12 Feb 2007 04:28:17 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.rsise.anu.edu.au (Postfix) with ESMTP id A3F0F540C4 for ; Mon, 12 Feb 2007 14:28:07 +1100 (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 31186-01 for ; Mon, 12 Feb 2007 14:28:07 +1100 (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 86556540C0 for ; Mon, 12 Feb 2007 14:28:00 +1100 (EST) Received: by pulp.rsise.anu.edu.au (Postfix, from userid 1560) id 98051A0AFC7; Mon, 12 Feb 2007 14:32:20 +1100 (EST) Date: Mon, 12 Feb 2007 14:32:20 +1100 From: Pietro Abate To: ocaml ml Subject: polymorphic variants and camlp4 Message-ID: <20070212033220.GA30365@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 45CFDECE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; variants:01 camlp:01 syntax:01 variants:01 camlp:01 uncaught:01 pcaml:01 blog:98 blog:98 polymorphic:01 polymorphic:01 constructor:01 exception:01 declaration:02 parse:02 Hi all, What is the syntax to use polymorphic variants with camlp4 ? <:str_item< type a = A >> is ok, but <:str_item< type a = [ `A ] >> doesn't work as expected... While expanding quotation "str_item": Parse error: '=' or '>' or '<' or [a_list] or [constructor_declaration] expected after '[' (in [type]) Uncaught exception: Pcaml.Qerror("str_item", 1, _) When is the new version of camlp4/3.10 due ? (this month, next month, next year) ? thanks :) p -- ++ 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