scoped classes and dependency inversion
Neia Neutuladh
neia at ikeran.org
Thu Nov 8 16:12:47 UTC 2018
On Thu, 08 Nov 2018 12:45:57 +0000, Alex wrote:
> Hmm... not sure, if I got your idea... Do you think about something like
> this?
The point is dependency inversion. The class shouldn't need to know how to
build its dependencies; it should leave that to other code. The fact that
you can use the default constructor to build a thing is more coupling than
desired.
More information about the Digitalmars-d-learn
mailing list