Sealed classes - would you want them in D?

Tobias Müller troplin at bluewin.ch
Wed May 16 06:12:10 UTC 2018


Tobias Müller <troplin at bluewin.ch> wrote:
> KingJoffrey <KingJoffrey at KingJoffrey.com> wrote:
>> actually, private is default in Rust.
>> 
>> public is default in D.
>> 
>> also, in Rust, private is private within the module, *and* its 
>> descendants.
>> 
>> I don't believe that is the case in D (someone correct me if I'm 
>> wrong)
> 
> The point is, that the module is the abstraction boundary.
> 
> 

s/abstraction/encapsulation/



More information about the Digitalmars-d mailing list