Do non-member functions improve encapsulation in D?
Gary Willoughby via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 24 10:36:52 PDT 2014
On Tuesday, 22 April 2014 at 06:39:47 UTC, Jacob Carlborg wrote:
> I'm almost exclusively organizing with one class per module and
> a deeper hierarchy of packages. Not saying that is the ideal
> solution.
That's what i've started to do in a recent project and then use
the special 'package.d' file to provide a package. Sometimes you
may have a couple of related classes or enums in each file too
but only if they need to be friendly with the main class. This
way is much more clear and neat.
More information about the Digitalmars-d
mailing list