ldc executable crashes with this code

forkit forkit at gmail.com
Sat Feb 5 03:02:37 UTC 2022

On Friday, 4 February 2022 at 15:58:19 UTC, Stanislav Blinov 
> ..
> ...
> As others have already stated, casting immutability away is 
> something that has to be supported, e.g. to interface with 
> const-agnostic APIs. `@safe` requires such casts to be more 
> verbose, with good reason.

I concede ;-)

That the compiler knows this is @safe:

and this is not @safe:

is sufficent.

More information about the Digitalmars-d-learn mailing list