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.7 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2E532BC69 for ; Mon, 7 May 2007 10:21:14 +0200 (CEST) Received: from pilet.ens-lyon.fr (pilet.ens-lyon.fr [140.77.167.16]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l478LD7h013032 for ; Mon, 7 May 2007 10:21:14 +0200 Received: from localhost (localhost [127.0.0.1]) by pilet.ens-lyon.fr (Postfix) with ESMTP id A432515B8F6; Mon, 7 May 2007 10:21:11 +0200 (CEST) Received: from pilet.ens-lyon.fr ([127.0.0.1]) by localhost (pilet [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01740-41; Mon, 7 May 2007 10:21:10 +0200 (CEST) Received: from webmail.ens-lyon.fr (tadorne.ens-lyon.fr [140.77.51.11]) by pilet.ens-lyon.fr (Postfix) with ESMTP id B955F15B8C8; Mon, 7 May 2007 10:21:10 +0200 (CEST) Received: from tok69-2-82-224-120-185.fbx.proxad.net (tok69-2-82-224-120-185.fbx.proxad.net [82.224.120.185]) by webmail.ens-lyon.fr (Horde MIME library) with HTTP for ; Mon, 07 May 2007 10:21:10 +0200 Message-ID: <20070507102110.hdvb0z4firk0ow0o@tadorne.ens-lyon.fr> Date: Mon, 07 May 2007 10:21:10 +0200 From: Emmanuel Onzon To: skaller Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] 246 constructors? References: <20070506210912.38195BC82@yquem.inria.fr> In-Reply-To: <20070506210912.38195BC82@yquem.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ens-lyon.fr X-Miltered: at concorde with ID 463EE179.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ens-lyon:01 constructors:01 0100,:01 constructors:01 variants:01 clashes:01 parser:01 variants:01 polymorphic:01 wrote:01 wrote:01 caml-list:01 parse:02 generated:05 emmanuel:06 > On Sun, 2007-05-06 at 20:50 +0100, Jon Harrop wrote: >> On Sunday 06 May 2007 20:49, skaller wrote: >> > I just got this message: >> > >> > File "dyp_parse.ml", line 492, characters 5-19461: >> > Too many non-constant constructors -- maximum is 246 non-constant >> > constructors >> > >> > Really??? >> >> Yeah, I was hardcoding a bunch of enums for my Mathematica >> interpreter and got >> that. Easiest solution is to use polymorphic variants instead. Then you have >> clashes to worry about instead... > > Unfortunately (or not .. ) the file is generated by > the dypgen parser generator.. I have just added an option -symbols-with-variants which makes dypgen use variants instead of constructors. (see the file CHANGES for other changes in this version) Emmanuel