Sealed classes - would you want them in D?

Walter Bright newshound2 at digitalmars.com
Wed May 16 16:43:31 UTC 2018


On 5/16/2018 6:55 AM, Andrei Alexandrescu wrote:
> 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.

I had no idea. It's either parallel gestation of a great idea, or they took it 
from D!


More information about the Digitalmars-d mailing list