Load dynamic libraries with no hand-written bindings!
Andrej Mitrovic
andrej.mitrovich at gmail.com
Wed Sep 7 16:24:53 UTC 2022
On Wednesday, 7 September 2022 at 16:05:44 UTC, Paul Backus wrote:
> On Wednesday, 7 September 2022 at 15:35:29 UTC, Andrej Mitrovic
> wrote:
>> As mentioned in the previous reply it seems that a function
>> typedef trips it up. If there was a way to filter it out,
>> that'd be great.
>
> I think the root of the problem here is that
> `std.traits.isFunction` does not do exactly what you're
> assuming it does. Specifically, it evaluates to `true` for both
> function *symbols* and function *types*
Ah yes, that makes sense. I haven't used traits in a long time,
shows how rusty I am with them. Thanks for the tips!~
More information about the Digitalmars-d
mailing list