[Issue 24772] Casting class references to void* should be @safe
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Sep 19 16:29:46 UTC 2024
    
    
  
https://issues.dlang.org/show_bug.cgi?id=24772
--- Comment #3 from Richard (Rikki) Andrew Cattermole <alphaglosined at gmail.com> ---
That code is unsafe.
You have lost the type system guarantees, calling into unknown code.
Which yes, if you passed the wrong arguments could have led to program
corruption.
--
    
    
More information about the Digitalmars-d-bugs
mailing list