arr.ptr, @safe and void*
Nick Treleaven via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 16 03:00:41 PDT 2016
On Wednesday, 15 June 2016 at 20:33:54 UTC, Steven Schveighoffer
wrote:
>
> It could probably do this. Dereferencing a void * isn't valid,
> so it kind of has the same effect. However, there are many
> functions which take void * and do write to/read from the data
> pointing at it (e.g. memcpy). These aren't @safe, so they
> should be off-limits.
>
> [...]
OK, thanks for explaining ;-)
More information about the Digitalmars-d-learn
mailing list