http://d.puremagic.com/issues/show_bug.cgi?id=9588
Summary: format prints "null" for struct functions Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-02-25 15:07:36 PST --- import std.string; import std.stdio; void main() { struct S { int x; bool empty() { return false; } } writeln( format("%s", S()) ); } > S(0, null) It shouldn't try to print the function. I think this should also apply to property functions since e.g. "empty" is typically a property function. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------