Instead of targeting doc files, could dmd create xml files for the purpose of runtime reflection, instead of trying to go to runtime reflection via __traits.
You can archive these files together with the binary code. Create some sort of D package. I mean C (GNOME) is going with xml files for their introspection. http://library.gnome.org/devel/gi/unstable/gi-gir-reference.html --------------------------------------------------------- dmd is a 42 bit compiler. oh W. just added another bit. dmd is now a 43 bit compiler. ---------------------------------------------------------