http://d.puremagic.com/issues/show_bug.cgi?id=8059
Marco Leise <marco.le...@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marco.le...@gmx.de --- Comment #3 from Marco Leise <marco.le...@gmx.de> 2012-05-10 12:03:05 PDT --- typeid(x) doesn't work in all cases where x.classinfo works (on 2.057/2.059). Something along the line of: TypeInfo_Class[string] lookup; class Foo { mixin Register!("foo"); } template Register(string Trigger) { static this() { lookup[Trigger] = this.classinfo; // ok // lookup[Trigger] = typeid(this); <- 'this' is only defined in non-static member functions, not _staticCtor13 } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------