On Wednesday, 17 August 2016 at 14:21:32 UTC, Steven
Schveighoffer wrote:
void * is almost useless. In D you can assign a void[] from
another void[], but other than that, there's no way to write
the memory or read it.
In C, void * is also allowed to alias any other pointer. But
char * is also allowed to provide arbitrary byte
reading/writing.
I'd expect that D also would provide a similar option.
-Steve
Yes, but everything can alias with void*/void[] . Thus, you can
cast from void* to T* "safely".