Re: How to write a library

2023-01-21 Thread Hipreme via Digitalmars-d-learn
On Saturday, 21 January 2023 at 22:53:19 UTC, Matt wrote: I am trying to write a graphics engine for my university capstone project, and really wanted to give it a try in D, as both a talking point, and because I love the language. I'm using dub to build the library, and the demo application t

Re: How to write a library

2023-01-21 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/21/23 5:53 PM, Matt wrote: I am trying to write a graphics engine for my university capstone project, and really wanted to give it a try in D, as both a talking point, and because I love the language. I'm using dub to build the library, and the demo application that'll use it. However, I

Re: How to write a library

2023-01-21 Thread Adam D Ruppe via Digitalmars-d-learn
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 ne

How to write a library

2023-01-21 Thread Matt via Digitalmars-d-learn
I am trying to write a graphics engine for my university capstone project, and really wanted to give it a try in D, as both a talking point, and because I love the language. I'm using dub to build the library, and the demo application that'll use it. However, I've come across a problem. In C/C