The interaction of encapsulation and properties in D
Dicebot
public at dicebot.lv
Thu Jul 11 01:19:49 PDT 2013
On Thursday, 11 July 2013 at 02:55:24 UTC, Luís Marques wrote:
> ...
I often find it cleaner to consider D minimal hard encapsulation
unit to be a module, not a class - it just maps naturally to
protection and module system. That means avoiding aggregate
methods as part of stable API/ABI.
The latter is also an issue with directly exposing public fields
- while paren-less call allows to replace them with getter/setter
with no syntax (API) change, ABI will change anyway.
More information about the Digitalmars-d
mailing list