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

Andrei Alexandrescu via Dlang-internal dlang-internal at puremagic.com
Mon Dec 26 14:58:18 PST 2016


On 12/26/2016 05:35 PM, Vladimir Panteleev wrote:
> 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?

It's what I'm trying to get rid of :o). -- Andrei


More information about the Dlang-internal mailing list