How to debug broken inference?

welkam wwwelkam at gmail.com
Fri May 1 22:46:29 UTC 2020


On Friday, 1 May 2020 at 21:04:34 UTC, Steven Schveighoffer wrote:
>
> char[4] buf;
>
> auto slice = buf.ptr[idx .. buf.length];

onlineapp.d(3): Error: buf.ptr cannot be used in @safe code, use 
&buf[0] instead



More information about the Digitalmars-d mailing list