[Issue 2484] Templated classes have no moduleinfo

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 23 16:23:56 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2484


nfxjfg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nfxjfg at gmail.com


--- Comment #4 from nfxjfg at gmail.com 2010-04-23 16:23:51 PDT ---
This has absolutely nothing to do with templates. It's because dmd does a very
crappy job when finding classes of a module and adding them into
ModuleInfo.localClasses. For example, this doesn't work either:

struct X {
    class Y {
    }
}

assert(!!Object.factory(X.Y.classinfo.name));

At least that's what I suspect. ModuleInfo.localClasses recently got commented
out in D2 (thanks a lot Walter), so I don't really feel like continuing finding
out what goes wrong.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list