Sealed classes - would you want them in D?

Nicholas Wilson iamthewilsonator at hotmail.com
Fri May 11 19:06:58 UTC 2018


On Friday, 11 May 2018 at 16:51:30 UTC, Mike Parker wrote:
> I don't see  how putting the function outside or inside
> the class declaration makes any difference.

Being inside the class takes up a vtable slot and is inheritable.
In terms of encapsulation there is no difference.



More information about the Digitalmars-d mailing list