Object Oriented Programming with D Language. Private access specifier. Summary.

Lutger lutger.blijdestijn at gmail.com
Fri Aug 22 02:51:34 PDT 2008


Lutger wrote:

.. 
> My 2 cents is that your assumption that private is exclusively related to
> OO programming is wrong. Private provides encapsulation, but that is not
> restricted to OO programming. As has been said, it is on the module level,
> not coincidentally corresponding to a single file.

Just to clarify: encapsulation helps modular programming. D supports this
directly, most common OOP languages emulate that by the use of classes. I
thinks it makes more sense the way it's done in D.




More information about the Digitalmars-d mailing list