One case of array assignments

Timon Gehr timon.gehr at gmx.ch
Wed Mar 13 14:51:27 PDT 2013


On 03/13/2013 10:40 PM, John Colvin wrote:
> On Wednesday, 13 March 2013 at 21:33:47 UTC, H. S. Teoh wrote:
>> ...
>>
>> Why is it bad to have to explicitly list the elements for static
>> initialization?
>>
>>
>> T
>
> I would be great if we could get rid of post-fix array declarations for
> good, but I'm not sure how realistic that is.
>
>
> It's bad to have to explicitly list them because there could be
> hundreds, thousands or even millions of elements.

But we have full compile-time function evaluation available, enabling 
initializer compression in much more involved ways.


More information about the Digitalmars-d mailing list