Can we just have struct inheritence already?
Tim
tim.dlang at t-online.de
Thu Jun 13 21:10:09 UTC 2019
On Thursday, 13 June 2019 at 20:55:34 UTC, Exil wrote:
> This problem happens because you are used @trusted. If you used
> @safe you wouldn't be able to increment pointers and modify the
> values the way you did in @trusted.
The @trusted function behaves correctly if it receives valid
input. The memory corruption only happens, because the @safe
function passes a value, that is not expected by the compiler.
More information about the Digitalmars-d
mailing list