Load dynamic libraries with no hand-written bindings!

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Sep 7 05:29:31 UTC 2022


On Tuesday, 6 September 2022 at 16:50:16 UTC, Paul Backus wrote:
> Haven't tested, but I think you may be able to simplify this by 
> replacing
>
>     FuncType!(__traits(getMember, Module, member))
>
> with
>
>     typeof(&__traits(getMember, Module, member))
>
> ...which would let you eliminate the `FuncType` template 
> entirely.

Already tried that, but it doesn't work. Maybe it's just a bug in 
the backend.


More information about the Digitalmars-d mailing list