[Issue 17604] Reject mutable fields initialized with reference types to data segment

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 23 03:28:12 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17604

--- Comment #5 from anonymous4 <dfj1esp02 at sneakemail.com> ---
(In reply to Vladimir Panteleev from comment #3)
> I prefer the description on this bug but I'm a little biased ;)

This scenario needs dynamic initialization, and D requires an explicit
constructor for it for whatever reason, so disallowing is the the most
straightforward solution.

--


More information about the Digitalmars-d-bugs mailing list