Sealed classes - would you want them in D?

KingJoffrey KingJoffrey at KingJoffrey.com
Sat May 12 07:29:47 UTC 2018


On Saturday, 12 May 2018 at 07:19:47 UTC, rikki cattermole wrote:
>
> I see no problem.
>
> onlineapp.d(1): Error: label wtf is undefined

The 'Error' is my point. It's not possible to do this - which is 
a good thing.

D protects the encapsulation unit of the function from such abuse.

But the same is not true for classes.



More information about the Digitalmars-d mailing list