[Issue 21035] wrong code when uses struct's methods of .init value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 31 07:21:30 UTC 2020


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

--- Comment #5 from Илья Ярошенко <ilyayaroshenko at gmail.com> ---
(In reply to KytoDragon from comment #4)
> Aren't the ".init" values read only? The append tries to change the "data"
> member of the initializer, which results in an memory write error.

D doesn't prohibit to call methods of right hand side values.

--


More information about the Digitalmars-d-bugs mailing list