Have a template function register(T)() instantiated and executed at startup for all sub classes of a specific base class?

TwoOfCups TwoOfCups at notreal.com
Wed Sep 24 23:29:31 UTC 2025


On Sunday, 21 September 2025 at 19:23:33 UTC, monkyyy wrote:
> On Sunday, 21 September 2025 at 08:52:48 UTC, TwoOfCups wrote:
>> Primarily it is this that I am curious if there is **ANY** way 
>> to make happen.
>
> how far into compiler bugs you wanta go?

If there was even a hacky compiler bug way of making it work I 
would still be interested in how it could be done just for 
learning purposes.


More information about the Digitalmars-d mailing list