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.

Reply via email to