issue with static foreach
someone
someone at somewhere.com
Thu Jul 22 14:15:28 UTC 2021
On Thursday, 22 July 2021 at 08:16:43 UTC, Patrick Schluter wrote:
> What an unreadable mess. Sorry.
Indeed LoL !!!
> I would have done something like that:
>
>
> ```d
> mixin(format!
> `case r"%1$s"d :
> classTickerCustom%1$s lobjTicker%1$s = new
> classTickerCustom%1$s (lstrSymbolID);
> if (true == true) {
> pobjTickersCustom%1$s ~= lobjTicker%1$s ;
> pobjTickersCommon ~= cast(classTickerCommon)
> lobjTicker%1$s ;
> }
> break labelSwitch;`(sstrExchangeID)
> );
> ```
>
> That's easier to edit imho.
No doubt. This happened while refactoring some code with the
mixins.
More information about the Digitalmars-d-learn
mailing list