CRTP + compile-time introspection + static ctors = WIN
Adam D. Ruppe
destructionator at gmail.com
Fri Jan 15 18:34:12 UTC 2021
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.
More information about the Digitalmars-d
mailing list