Warp wrote:
>
> Wouldn't it be more efficient if the script wrote this in the file:
>
> #declare My_data[<the amount of data>] =
> { the values here };
>
> instead of a huge bunch of assignments?
>
...but you don't know <the amount of data> beforehand...
But you could write the data in a file the way you proposed (i.e. just
comma-separated-values with curly brackets), counting the amount, and
then include them in an initializerstatement:
#declare My_data[<the amount of data>] = #include
"my_prepared_array_initalizerfile"
cukk
Post a reply to this message
|