Shouldn't invalid references like this fail at compile time?

Mike Franklin slavo5150 at yahoo.com
Wed Jan 24 00:31:31 UTC 2018


On Tuesday, 23 January 2018 at 21:53:24 UTC, Steven Schveighoffer 
wrote:

>> Interestingly, `destroy` is an unsafe operation for classes.
>
> Because it's calling a @system function, rt_finalize. This 
> function calls whatever is in the destructor, and because it 
> works on Object level, it has no idea what the actual 
> attributes of the derived destructor are.
>
> This needs to be fixed, but a whole host of issues like this 
> exist with Object.

Are there any bugzilla issues that you are aware of that document 
this?

Mike


More information about the Digitalmars-d mailing list