September 13, 2003
[ dunno if that's the most appropiate subject ]

Another behavior I don't find consistent:

----------a.d
class A {}
void foo() {}
----------b.d
A x;
foo();
import a;

While the function call works, the class declaration doesn't. Worst, if I use a.A instead of just A, dmd crashes with one of those Windows messages "memory can't be read". Also happens if A is struct or enum.

-------------------------
Carlos Santander




---

Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.516 / Virus Database: 313 - Release Date: 2003-09-01