Can we just have struct inheritence already?

Timon Gehr timon.gehr at gmx.ch
Thu Jun 13 19:51:12 UTC 2019


On 13.06.19 21:44, Walter Bright wrote:
> On 6/13/2019 4:30 AM, Timon Gehr wrote:
>> Yes. IMHO this shouldn't be a @safe pure operation.
> 
> D regards converting a pointer to an int as safe, but not the other way 
> around.

I know, and that is fine, but casting a pointer to int is not pure. It 
glances into the global state maintained by the memory allocator.


More information about the Digitalmars-d mailing list