https://issues.dlang.org/show_bug.cgi?id=18422
--- Comment #4 from Andrei Alexandrescu <and...@erdani.com> --- (In reply to ag0aep6g from comment #3) > (In reply to Andrei Alexandrescu from comment #2) > > 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; > > ... > > Eh? Previously it was "function declarations", now it's "data declarations". > And you've not given an implementation of either. Somebody's in a testy mood :o). It was quicker to exemplify with data. Will follow up with a working sample. --