xxxxxxxxxx
--- main.d
import pkg.mod;
void main()
{
assert(mod == 42);
}
--- example.d
module pkg.mod;
int mod = 42;