packageless modules == pure evil?
torhu
no at spam.invalid
Sun Feb 17 16:27:41 PST 2008
Bill Baxter wrote:
> The problem that prompted this message was that I had a module called
> just "blas" in one place and was trying to make another module called
> "dflat.blas". But that breaks plain "import blas". It picks up the
> "dflat.blas" rather than the packageless blas, even though I didn't
> specify that I wanted "dflat.blas".
It works when I try a simple test. I have a.d, b/a.d, and then import
just 'a' into test.d.
a.d:
---
module a;
char[] s = "a";
---
b/a.d:
---
module b.a;
char[] s = "b.a";
---
test.d:
---
import std.stdio;
import a;
void main()
{
writefln(s);
}
---
running:
---
c:\prog\test\D\baxter>bud -exec test
a
---
So a more complex test is needed to show the problem. Maybe importing
from different include paths, etc?
More information about the Digitalmars-d-learn
mailing list