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

Andrej Mitrovic andrej.mitrovich at
Fri Dec 13 08:29:22 UTC 2019

On Friday, 13 December 2019 at 08:24:03 UTC, Paulo Pinto wrote:
> Your example is only safe if writeln happens to be safe.

Well yes, you could only call @safe functions with that void*. 
That's how transitivity works.

More information about the Digitalmars-d mailing list