[Issue 3715] std.string.format can't use const/immutable toString functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Sep 19 06:27:01 PDT 2010


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



--- Comment #3 from Tomasz Sowiński <tomeksowi at gmail.com> 2010-09-19 06:26:24 PDT ---
(In reply to comment #2)
> Yes, std.string.format uses varargs, not templates, so it can only do what the
> TypeInfo allows it to do.  And the compiler will only store the function
> pointer to toString if it exactly matches the right signature.

OK, now I understand why it doesn't work, thanks. But how to get it working? In
real life toString() will often be const|pure|nothrow because of its nature.

-- 
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