Closed zorael closed 4 years ago
Replaces our normal version(Colours) if (!settings.monochrome) { /* ... */ } dance with a struct with a static opDispatch that does it for us.
version(Colours) if (!settings.monochrome) { /* ... */ }
opDispatch
It has to have visibility of kameloso.common.settings and kameloso.common.logger, so it's placed in kameloso.common.
kameloso.common.settings
kameloso.common.logger
kameloso.common
Replaces our normal
version(Colours) if (!settings.monochrome) { /* ... */ }
dance with a struct with a staticopDispatch
that does it for us.It has to have visibility of
kameloso.common.settings
andkameloso.common.logger
, so it's placed inkameloso.common
.