Do non-member functions improve encapsulation in D?

Andrej Mitrovic via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 20 02:50:28 PDT 2014


On 4/20/14, Lars T. Kyllingstad via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> In his article "How non-member functions improve encapsulation"
> [1], Scott Meyers makes a good argument for why free functions
> should generally be preferred over class methods in C++.

TDPL actually references this IIRC.


More information about the Digitalmars-d mailing list