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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 6852CBC69 for ; Mon, 30 Apr 2007 11:54:08 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3U9s78u012135 for ; Mon, 30 Apr 2007 11:54:07 +0200 Received: by nz-out-0506.google.com with SMTP id l8so2001818nzf for ; Mon, 30 Apr 2007 02:54:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lr7+qaitrtQfhYY6BOv+91QXlq78j9VTBZGmkg8eBqEp9teOHRW2IPczsbFEQJBml1KykHPC6zbrtRvQ3HJa23sD/RaoAhSIkoFvvA6X4PZVxh4F+kdoPwhda8uH1jJyk2/w7E3hT6bIdAnXuMxrpAB756oxHnhlTRsi1lPxwDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cdPQre5sUQ0FQ/YLVMcdJhC4zaXbONl2USkN5AMy+xS92/Dg3ECri7LH12hvoy+g+AcGrzE82eD58yzH/I/Z7oz1jDwcW7tZuEp4P5ZW6YNAkoV+EYjl9wr5/1Y4W+PYJd149moPYgMW0StKj3ogQYT+lYhU5xD9o0ZyH61vcsk= Received: by 10.114.180.1 with SMTP id c1mr1932555waf.1177926422705; Mon, 30 Apr 2007 02:47:02 -0700 (PDT) Received: by 10.114.181.18 with HTTP; Mon, 30 Apr 2007 02:47:02 -0700 (PDT) Message-ID: Date: Mon, 30 Apr 2007 11:47:02 +0200 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] AST transformation and scrapping boilerplate code Cc: "Caml List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0DF43C61-05DE-4129-A5F6-06AF8722A8D5@gmail.com> X-j-chkmail-Score: MSGID : 4635BCBF.000 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 4635BCBF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; variants:01 variants:01 polymorphic:01 polymorphic:01 wrote:01 caml-list:01 ast:02 commit:03 patch:08 nicolas:08 nicolas:08 technically:09 generators:10 example:10 i've:12 On 4/30/07, Joel Reymont wrote: > Thank you Nicolas! This helps a lot! > > What needs to be done to make the generators handle polymorphic > variants? Adding just 28 lines in fact, so I've done it. I technically can't commit this patch right now, but here it is: http://pastie.caboo.se/57636 The example using polymorphic variants: http://pastie.caboo.se/57635 Regards, -- Nicolas Pouillard