[Dlang-internal] How do I find and call a function in a module I only know during runtime?

Vladimir Panteleev via Dlang-internal dlang-internal at puremagic.com
Mon Dec 26 14:35:32 PST 2016


On Monday, 26 December 2016 at 22:32:55 UTC, Andrei Alexandrescu 
wrote:
> You still need to fetch the static array address. Essentially 
> what I'm looking for is, starting from ModuleInfo, get to the 
> address of something tangible that is planted intentionally (so 
> I know its name). What is a good way to achieve that?

Have you already considered Object.factory?


More information about the Dlang-internal mailing list