On Sunday, 13 May 2018 at 02:10:31 UTC, Uknown wrote:
Again, all you have to do is put class Person in a separate
module.
This is such a nonsense solution. Why do you keep proposing it?
Is this you way to effectively sweep the problem under the carpet?
For me, a module presents the opportunity to group objects into a
larger working unit.
But since D does not respect the encapsulation of objects, one
has to revert to your solution, or mine (which is, if you're
solution to a problem requires the use of classes, then go use a
progamming language that respects the encapsulation boundary of
classes).