Two major problems with dub

rikki cattermole rikki at cattermole.co.nz
Sun Aug 1 18:03:29 UTC 2021


On 02/08/2021 5:18 AM, Alain De Vos wrote:
> A simple and small wrapper around for instance the C-library libpq 
> should be part of the language itself and should not pull in more than 
> libpq itself.

Just so that we are all using the same terminology.

A binding defines the functions and types as per the external libraries 
headers.
It may be dynamically loaded and require a loader also, there is no 
bloat for this.

A wrapper uses a binding but makes it more D friendly or even @safe. I 
think based upon your description that you are looking for a binding not 
a wrapper.

The only binding I could find was derelictpq which hasn't been updated 
to bindbc (not that it should matter too much). 
https://github.com/DerelictOrg/DerelictPQ


More information about the Digitalmars-d-learn mailing list