Windows system casting
Mike Parker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jun 6 21:08:49 PDT 2016
On Tuesday, 7 June 2016 at 04:06:01 UTC, Mike Parker wrote:
>
> Fourth, while casting the string directly to void* will work,
> it's considered best practice to use the pointer property for
> clarity.
Oops!
cast(void*)path.ptr
In both cases. Like I said, without .ptr, it works, but this
makes it clear at a glance what's going on.
More information about the Digitalmars-d-learn
mailing list