Shouldn't casting an object to void* be considered @safe?

Ola Fosheim Grøstad ola.fosheim.grostad at
Sat Dec 14 19:18:58 UTC 2019

On Saturday, 14 December 2019 at 18:46:38 UTC, Dennis wrote:
>     void* v2 = cast(void*) new C(); // not allowed, not a

Why not? Holding the door open for memory compaction on the GC 

More information about the Digitalmars-d mailing list