Why do private member variables behaved like protected in the same module when creating deriving class?

Neia Neutuladh neia at ikeran.org
Fri Oct 26 20:31:57 UTC 2018


On Fri, 26 Oct 2018 19:28:43 +0000, 12345swordy wrote:
> On Friday, 26 October 2018 at 18:57:00 UTC, Neia Neutuladh wrote:
>> On Fri, 26 Oct 2018 18:16:38 +0000, 12345swordy wrote:
>>> [...]
>>
>> D's `private` within a module is identical to Java's `private`
>> within a class and its nested classes. The following is valid Java:
>>
>> [...]
> 
> Again I am referring to classes in the module not the module itself.

Perhaps you could show an example of what you want to forbid? I think that 
would be the most effective way for you to communicate what you mean.


More information about the Digitalmars-d mailing list