how to make private class member private

Radu void at null.pt
Tue Mar 13 06:26:13 UTC 2018


On Tuesday, 13 March 2018 at 06:14:49 UTC, psychoticRabbit wrote:
> On Tuesday, 13 March 2018 at 06:01:43 UTC, ketmar wrote:
>>
>> ah, yes, sorry: i completely forgot that C++ was invented 
>> after c# and java. mea maxima culpa!
>
> My point was, that the 2 most widely used and popular languages 
> on the plant, C# and Java, decided NOT to make private, 
> something mean else, like D has done.
>
> So the 3 most used languages got it wrong??

Yes, they got it wrong! Because they don't have modules, and 
because Java & C# are OOP bondage-everything-is-a-class, and 
preach that the world spins on classes.

C++ tried to fix it with 'friend', and it shows the hack that it 
is.

Don't know why you think D should be just another Java or C#?


More information about the Digitalmars-d-learn mailing list