Memory safe in D

Alex akornilov.82 at mail.ru
Mon Mar 11 13:17:46 UTC 2024


On Monday, 11 March 2024 at 11:09:40 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> If the function reads or writes to the this pointer, its going 
> to segfault.
>
> Same principle with the vtable lookup.
>
> If you make your method on the class final, it should work the 
> exact same way as the struct above, due to it not using the 
> vtable.

Thank you very much for detailed explanation! Now I understand 
what is going on.


More information about the Digitalmars-d mailing list