http://d.puremagic.com/issues/show_bug.cgi?id=11175
Summary: format prints null for all objects inheriting IUnknown Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: critical Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-10-05 11:15:15 PDT --- This really had me stumped: ----- import std.stdio; interface IWhatever { } class C : IWhatever { } interface IUnknown { } class D : IUnknown { } void main() { IWhatever iw = new C; writefln("iw is: %s. iw is not null: %s", iw, iw !is null); IUnknown iu = new D; writefln("iu is: %s. iu is not null: %s", iu, iu !is null); } ----- Prints: iw is: test.C. iw is not null: true iu is: null. iu is not null: true What in the world?? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------