On 2014-10-26 14:25, Etienne Cimon wrote:
On 2014-10-25 23:31, H. S. Teoh via Digitalmars-d-learn wrote:
Hmm. You can probably use __traits(getAllMembers...) to introspect a
library module at compile-time and build a hash based on that, so that
it's completely automated. If you have this available as a mixin, you
could just mixin(exportLibrarySymbols()) in your module to produce the
hash.

Exactly, or I could also make it export specific functions into the
hashmap, a little like a router. It seems like a very decent option.



I found an elegant solution for dealing with dynamic libraries:

https://github.com/bitwise-github/D-Reflection

Reply via email to