Really in need of help with std.container.array.d

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Oct 19 12:36:46 PDT 2014


On Sunday, 19 October 2014 at 19:30:40 UTC, Nordlöw wrote:
> On Sunday, 19 October 2014 at 19:13:33 UTC, anonymous wrote:
>> Yes, they don't compile. It's three slightly different versions
>> of initializing _outer.
>>
>> The first one, `_outer = data;`, is the original one. It's
>> understandable that it doesn't work anymore with the workaround
>> in place.
>>
>> I don't know why the second one, `_outer_[0] = data;`, doesn't
>> work. Maybe it triggers the same (or a related) postblit 
>> compiler
>> bug again. It's essentially the same as the third one, 
>> `_outer_ =
>> data;`, which happens to work.
>
> So there's currently no complete solution to this problem yet, 
> then?

The last variant works: `_outer_ = data;`.

And that one is enabled in my code, while the other two are
`version(none)`-ed away.


More information about the Digitalmars-d-learn mailing list