Version française
Home     About     Download     Resources     Contact us    
Browse thread
Re: [Caml-list] 246 constructors?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Emmanuel Onzon <emmanuel.onzon@e...>
Subject: Re: [Caml-list] 246 constructors?
> 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