[Issue 17174] can take address of member of struct parameter in @safe code

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Feb 10 16:39:28 PST 2017


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

--- Comment #2 from Alex <sascha.orlov at gmail.com> ---
@ag0aep6g
Ok... my complaint was about your first two lines. Didn't take this into
account. 
But even then, it seems strange to me to be able to take a pointer to a value
parameter, in any case...
With other words: 
The treatment I was wondering about (allocating memory) is needed, and I should
have known this, because the constructor is not marked as @safe.

--


More information about the Digitalmars-d-bugs mailing list