Sealed classes - would you want them in D?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed May 16 13:55:28 UTC 2018


On 05/16/2018 04:42 AM, Dave Jones wrote:
> On Wednesday, 16 May 2018 at 08:20:23 UTC, Uknown wrote:
>> On Wednesday, 16 May 2018 at 07:53:36 UTC, aliak wrote:
>>
>> Just checked the rust spec [0]. private in rust => accessible from 
>> that module and its descendants, which is what package in D is. 
>> private in D would be to that module only.
>>
>> [0]: https://doc.rust-lang.org/beta/reference/visibility-and-privacy.html
> 
> Dont know if its been mentioned before but in Delphi / Object Pascal 
> private is accessible to everything in the same module. Same as D.

This is interesting, thanks for the info.


More information about the Digitalmars-d mailing list