Shouldn't casting an object to void* be considered @safe?
    Joseph Rushton Wakeling 
    joseph.wakeling at webdrake.net
       
    Sat Dec 14 17:54:20 UTC 2019
    
    
  
On Saturday, 14 December 2019 at 17:30:53 UTC, Ola Fosheim 
Grøstad wrote:
> Casting to void should be safe, that is the same as providing a 
> pure object identity.
>
> This is useful for a set of objects.
What's the point in generating a pure object identity, or a set 
of objects, unless those objects are going to be used?  And how 
do you validate that that usage is safe without knowing something 
about the circumstances in which those pure identities were 
generated?
    
    
More information about the Digitalmars-d
mailing list