On 3/19/2015 3:13 PM, Jeremy Powers via Digitalmars-d wrote:
A valid reason for doing things like this is future-proof encapsulation.  You
can change the internal foo to be something entirely different, and the external
api never changes (assuming 'foo' is private).

That's why D has properties. Fields can be replaced with property functions.

Reply via email to