Hi!
You may hate me, but currently I'm using nodejs. I want to use
dlang as a second instrument and I'm trying to check some js-like
features. For example, if I want to store somewhere in
array|tuple a list of pointers to classes (app services) how may
I do that?
I expect code like this:
----------------------
class OloloService {}
class BlablaService {}
auto servicesList = [OloloService, BlablaService];
auto serviceInstance = new servicesList[1](args);
----------------------
But such costructions is impossible in D, so, may be anybody may
explain how to organize app "services" and what ways of
dependency injection exist for D?
Thank you :)