How to write a library

Adam D Ruppe destructionator at gmail.com
Sat Jan 21 22:57:57 UTC 2023


On Saturday, 21 January 2023 at 22:53:19 UTC, Matt wrote:
> but what is the D equivalent to header files, and what do I 
> have to do to prepare and use my library in another project?

The most common and easiest thing in D is to just distribute the 
source files, the compiler can pull whatever it needs out of 
there.

I almost never even build libraries separately, instead letting 
the compiler include them as-needed in the build.


More information about the Digitalmars-d-learn mailing list