Working with Modules

Guy Asking a Question via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 27 18:08:44 PST 2016


The code...

tester.d

module main;

import std.stdio;
import test; <---dmd choking here.

int main(string[] args)
{
     writefln("Hello World\n");
     writefln(add(a, b));
     return 0;
}


test.d

module test;

int add(int a, int b)
{
     return a + b;
}


More information about the Digitalmars-d-learn mailing list