Library linking (request)
Jarrett Billingsley
kb3ctd2 at yahoo.com
Mon Feb 27 19:58:14 PST 2006
"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message
news:du0hji$a2a$1 at digitaldaemon.com...
> import "alleg40.dll";
There is a problem with this.
Unless the library (static or dynamic) uses some kind of known name
mangling, D won't be able to deduce the function signatures.
For example, I know a lot of C-compatible libraries use C name mangling,
which is just
name at 8
Or something, where 8 is the number of bytes passed into the function. No
indication of return type, param types, etc.
It could only really be done with D libraries, and by then, you might as
well create your own D library format. Which would still be cool.
More information about the Digitalmars-d
mailing list