Sealed classes - would you want them in D?
Dave Jones
dave at jones.com
Wed May 16 08:42:10 UTC 2018
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.
More information about the Digitalmars-d
mailing list