Sealed classes - would you want them in D?

Dukc ajieskola at gmail.com
Mon May 14 07:03:35 UTC 2018


On Monday, 14 May 2018 at 07:02:37 UTC, Dukc wrote:

> ------------
> module test;
> void main() { foo.i = 2; }
> of encapsulation
> void foo() { static int i = 1; }
> ------------

meant

------------
module test;
void main() { foo.i = 2; }
void foo() { static int i = 1; }
------------


More information about the Digitalmars-d mailing list