can we un-deprecate .ptr on arrays in @safe code? cf issue 18529

Stefan Koch uplink.coder at googlemail.com
Tue Feb 27 09:47:51 UTC 2018


On Tuesday, 27 February 2018 at 09:23:19 UTC, bauss wrote:
> On Tuesday, 27 February 2018 at 08:43:32 UTC, Timothee Cour 
> wrote:
>> see rationale in https://issues.dlang.org/show_bug.cgi?id=18529
>
> All I see is a rationale for how it can't be replaced, but not 
> a rationale for actually doing it.
>
> I can't imagine a "safe" situation where you want to do it.
>
> Tbh. just put your code in @trusted

Checking if an array is the slice of another.



More information about the Digitalmars-d mailing list