Very very noobie question about how imports work.

J Smith via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Dec 10 19:20:29 PST 2015


Say I have a project with the files structured like this.

package-name/
     src/
         package-name/
             lib.d
     test/
         testlib.d

How do I make it so that I can import and use the contents of 
lib.d inside of testlib.d.

As you can tell I'm very new to D, and kind of new to 
programming. Forgive me for very noob and easy question, but 
couldn't really find anything out by reading the docs.


More information about the Digitalmars-d-learn mailing list