Sealed classes - would you want them in D?

bachmeier no at spam.net
Tue May 15 15:22:30 UTC 2018


On Tuesday, 15 May 2018 at 15:05:45 UTC, KingJoffrey wrote:

> The problem is not so much D, but that C++/Java/C# programmers, 
> and many from other languages (Go, Rust....) will expect 
> private to mean private...not private..depending on....
>
> They will expect the interface they defined, to be respected.

I'm not really in agreement with that. If you're coming from 
another language, you'll have to learn the differences. IMO D's 
solution is better...maybe you can convince the other languages 
to change.

I haven't read all of the (many) posts in this thread, so I'll 
leave it at that, since this has probably already been discussed. 
I didn't understand the example, but it's not actually the case 
that there's anything "broken", it's just different from what 
someone would expect if they tried to write C++ or Java in D.


More information about the Digitalmars-d mailing list