One case of array assignments
monarch_dodra
monarchdodra at gmail.com
Mon Mar 18 15:09:00 PDT 2013
On Monday, 18 March 2013 at 21:50:30 UTC, John Colvin wrote:
> On Monday, 18 March 2013 at 21:45:55 UTC, monarch_dodra wrote:
>>
>> The downside here is that this requires run-time
>> initialization.
>>
>
> Is the normal syntax compile time actually? Incorrect
> dimensions for initialisation of a static array is a runtime
> error, so i suspect it's not.
At worse, it is a CTFE-able syntax, because default value of all
fields of a struct MUST be evaluated during compile, to evaluate
T.init.
More information about the Digitalmars-d
mailing list