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

Another behavior I don't find consistent:

class A {}
void foo() {}
A x;
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 ( Version: 6.0.516 / Virus Database: 313 - Release Date: 2003-09-01

Top | Discussion index | About this forum | D home