ssll - simple shared library loader

Sönke Ludwig sludwig+d at
Mon Jan 6 10:04:38 UTC 2020

Am 06.01.2020 um 00:23 schrieb Oleg B:
> It's analog of bindbc, but without need write boilerplate code.
> May be bindbc is designed for another cases, but I don't understand need 
> writing triple definition for one function (pointer, loading, 
> wrap-function).
> ssll betterC compatible too, and tested on windows (x86) and linux (x86, 
> ARM).
> package:
> github:
> Example usage:
> Mosquitto binding and wrapper
> libsystemd binding
> I think somebody can find it handy.

Just throwing this in as a possible API alternative/addition - I've 
written something similar with the goal to make it work transparently 
with existing static bindings:

It uses a mixin to specify the module(s) containing the declarations 
instead of a UDA:

mixin dynamicBinding!(somelib) _somelib;

void main()

     import somelib : foo;

More information about the Digitalmars-d-announce mailing list