https://issues.dlang.org/show_bug.cgi?id=18422

--- Comment #2 from Andrei Alexandrescu <[email protected]> ---
Happy to oblige!

struct Data
{
    string name;
    string type;
    string qualifier;
    string[] attributes;
}

Then the module can give you all top-level data declarations:

enum Data[] d = Module("mypack.mymod").data;
...

Indeed it is odd there'd be functions that only run during compilation. Need to
think of that.

--

Reply via email to