[clean-list] Limit on record size ?

Diederik van Arkel dvanarkel@mac.com
Fri, 31 Jan 2003 20:18:23 +0100


On Friday, January 31, 2003, at 05:54 PM, Fabien Todescato wrote:

> Dear Cleaners,
>
> Trying to compile some code I get a compiler crash whenever the size 
> of some
> record type exceeds 36 fields, and this seemingly no matter what the 
> type of
> the fields are.
>
> I regenerated the compiler with the Check Stack and Check Indices 
> options
> set, but didn't get any informative error message. The compiler 
> crashes only
> after the type-checking phase has been completed, that is, if my 
> record has
> more than 36 items but the code is ill-typed, the compiler works 
> properly.
>
> At the moment, I group fields in sub-records or tuples in order to 
> decrease
> the number of fields of my large record, but this workaround sounds 
> rather
> artificial for the application I am working on.
>
> Does somebody know if there a known limit on record size ?
>
> Best regards, Fabien Todescato
>

Hi Fabien,

Clean records (and tuples) are currently limited to a maximum of 32 
fields, that
the compiler fails to flag your definition as an error is a bug which I 
believe
has been fixed for the next version. I'm afraid you'll have to stick to 
your
workaround for now as I don't think there are any plans to lift this 
limitation
in the short term. You might want to file a bug at clean@cs.kun.nl to 
let the
Clean team know that this limitation causes you problems.

Regards,

Diederik van Arkel