Dynamic length string array at compile time?

Mark Fisher logicfish at gmail.com
Fri Jun 16 01:59:24 UTC 2023


On Wednesday, 7 June 2023 at 00:18:54 UTC, Steven Schveighoffer 
wrote:
>
> So for instance, you can do:
>
> ```d
> immutable string[] strs = mod1.makeStrings() ~ 
> mod2.makeStrings() ~ ...;
> ```
>
> In a centralized place.
>
> -Steve

Hi,
So what if I wanted to build the strings within my library but 
have the client append their own data, for example if I want to 
have declarative extensions? Could this be done by using a mixin 
template to create the strings in the client?


More information about the Digitalmars-d-learn mailing list