Re: List classes at compile time

2024-10-21 Thread Noé Falzon via Digitalmars-d-learn
Thank you for the detailed answer! I will look into feasibility at runtime, or I'll default back to generating the list programmatically to feed into the mixin.

Re: List classes at compile time

2024-10-19 Thread evilrat via Digitalmars-d-learn
On Saturday, 19 October 2024 at 08:51:20 UTC, Noé Falzon wrote: tl;dr: is it possible to iterate over all classes in a program at compile time (or possibly all derived classes from a given base class) to use in a mixin? No, parent class can not possibly know who extends it, just think about

List classes at compile time

2024-10-19 Thread Noé Falzon via Digitalmars-d-learn
tl;dr: is it possible to iterate over all classes in a program at compile time (or possibly all derived classes from a given base class) to use in a mixin? Longer version: Hi! I'm essentially trying to select which class to instantiate/use as template argument based on a runtime string (user