January 30, 2006 ModuleInfo bug | ||||
---|---|---|---|---|
| ||||
The following assertion fails on my WinXP box with DMD.144:
import std.moduleinit;
void main() {
foreach (ModuleInfo mi; _moduleinfo_array) {
foreach (ClassInfo lci; mi.localClasses) {
assert (lci !is null);
}
}
}
It also fails if there are some classes defined in the module.
By the way, would it be possible to add a property like 'moduleof' of type ModuleInfo to ClassInfo ? It would be really useful :)
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d-pu s+: a-->----- C+++$>++++ UL P+ L+ E--- W++ N++ o? K? w++ !O !M V? PS- PE- Y PGP t 5 X? R tv-- b DI- D+ G e>+++ h>++ !r !y
------END GEEK CODE BLOCK------
Tomasz Stachowiak /+ a.k.a. h3r3tic +/
|
Copyright © 1999-2021 by the D Language Foundation