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 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 CD023BC69 for ; Tue, 4 Dec 2007 13:38:32 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAALvYVEeGnQCBnmdsb2JhbACPTgEBAQcEBik X-IronPort-AV: E=Sophos;i="4.23,248,1194217200"; d="scan'208";a="5241124" Received: from shiva.jussieu.fr ([134.157.0.129]) by mail1-smtp-roc.national.inria.fr with ESMTP; 04 Dec 2007 13:38:32 +0100 Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id lB4CcWqo051123 for ; Tue, 4 Dec 2007 13:38:32 +0100 (CET) X-Ids: 168 Received: from [134.157.168.28] (glondu@nickel.pps.jussieu.fr [134.157.168.28]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id lB4CcVxm004124 for ; Tue, 4 Dec 2007 13:38:31 +0100 Message-ID: <47554A47.0@glondu.net> Date: Tue, 04 Dec 2007 13:38:31 +0100 From: Stephane Glondu User-Agent: Mozilla-Thunderbird 2.0.0.6 (X11/20071009) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Union of polymorphic variants... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.168]); Tue, 04 Dec 2007 13:38:32 +0100 (CET) X-Virus-Scanned: ClamAV 0.88.7/4992/Tue Dec 4 12:21:35 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at shiva.jussieu.fr with ID 47554A48.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; variants:01 bool:01 bool:01 steph:98 polymorphic:01 char:01 char:01 declaration:02 stephane:07 stephane:07 equivalent:09 isn't:13 type:14 type:14 thanks:17 Hi, Why isn't possible to do the following? type b = [`A of [`B of bool]] type c = [`A of [`C of char]] type a = [b|c] I expect the last declaration to be equivalent to: type a = [`A of [`B of bool | `C of char]] Thanks, -- Stephane Glondu