We need to define the semantics of block initialization of arrays
David Nadlinger
code at klickverbot.at
Mon Jun 3 15:05:40 PDT 2013
On Monday, 3 June 2013 at 19:41:35 UTC, Timon Gehr wrote:
> On 06/03/2013 11:06 AM, Don wrote:
>>
>> Personally I'd like to just use block-init everywhere. […]
>
> Agreed, kill first-element init.
Kill it with a vengeance!
Honestly, I can't see how that could have ever been intended as a
feature, and while fixing an issue in LDC a while back, I already
removed that one instance with a first-element struct initializer
from the test suite:
https://github.com/ldc-developers/dmd-testsuite/blob/ldc/runnable/test42.d#L3226
David
More information about the Digitalmars-d
mailing list