C2 forum

General Category => Implementation Details => Topic started by: kyle on January 20, 2017, 04:35:51 AM

Title: incremental arrays
Post by: kyle on January 20, 2017, 04:35:51 AM
I was going through the language reference and finally read the section on incremental arrays.  Very nice!  That should eliminate a lot of ugly boilerplate early set up.

What are the limitations on the array additions?  Can they be in any compilation unit where the array is visible or do they have to be in the same compilation unit (i.e. file)?
Title: Re: incremental arrays
Post by: bas on January 29, 2017, 11:16:30 AM
The intention was indeed to remove a lot of macro magic by allowing incremental arrays. Currently all parts must be
in the same file I think, but I don't think there are problems when allowing multiple files in same module (since the order is
specified in the recipe).