Load dynamic libraries with no hand-written bindings!

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Sep 7 05:35:26 UTC 2022


On Tuesday, 6 September 2022 at 16:53:16 UTC, ryuukk_ wrote:
> That's pretty interesting, and it showcase the power and 
> capabilities of ImportC, nice!
>
> Few notes
>
> - std.meta/std.traits = bloated and slow, i suggest sticking to 
> plain __traits and copy/paste the few(2-3) functions that you 
> need

Yeah this is the unfortunate thing with traits. If you want to 
make the code example look neat, you use std.traits. But if you 
want to make it fast, use __traits or is(typeof( tricks.

I wanted the example to be easily understood (and I hacked this 
in about an hour).


More information about the Digitalmars-d mailing list