On Monday, 6 January 2020 at 10:04:38 UTC, Sönke Ludwig wrote:
I've written something similar with the goal to make it work
transparently with existing static bindings:
https://code.dlang.org/packages/dynamic
It uses a mixin to specify the module(s) containing the
declarations instead of a
On Monday, 6 January 2020 at 04:32:25 UTC, Mike Parker wrote:
On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote:
Nice work! One thing I would recommend, though, is that you not
bake in extern(C). Some libraries require extern(System)
(because they're stdcall on Windows and cdecl
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 Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote:
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
On Sunday, 5 January 2020 at 23:23:48 UTC, Oleg B wrote:
Nice work! One thing I would recommend, though, is that you not
bake in extern(C). Some libraries require extern(System) (because
they're stdcall on Windows and cdecl everywhere else).
There's also the issue with the Windows stdcall
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).