CRTP + compile-time introspection + static ctors = WIN

Imperatorn johan_forsberg_86 at hotmail.com
Sat Jan 16 09:22:25 UTC 2021


On Friday, 15 January 2021 at 18:34:12 UTC, Adam D. Ruppe wrote:
> On Friday, 15 January 2021 at 18:31:18 UTC, H. S. Teoh wrote:
>> CRTP + compile-time introspection + static ctors = WIN
>
> truth
>
> I wrote a lil on this a while ago too 
> http://dpldocs.info/this-week-in-d/Blog.Posted_2019_06_10.html#tip-of-the-week
>
> and
>
> http://dpldocs.info/this-week-in-d/Blog.Posted_2019_08_05.html#what-adam-is-working-on
>
> are both on the same topic. I like using static ctors with 
> mixin templates too, you can define your own private vars and 
> get them init, my jni.d does that for bridging.
>
>> D rocks!!
>
> D is bigger than a rock. D boulders.

+ D Mars


More information about the Digitalmars-d mailing list