opCast in class prevents destroy

bauss jj_1337 at live.dk
Tue Mar 1 07:16:11 UTC 2022


On Tuesday, 1 March 2022 at 04:59:49 UTC, Mike Parker wrote:
>
> It makes sense to me, and I would say the bug is that it's not 
> documented.
>

Personally it doesn't make sense to me. I don't think it should 
override default behaviors, but just add onto it, so you can add 
an additional cast.

Right now if you want to add an additional cast then you have to 
implement ALL the default behaviors and then add your custom cast.

That doesn't seem correct to me at least.

That's not how the behavior is in most other languages either.


More information about the Digitalmars-d-learn mailing list