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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 18 10:34:27 PDT 2010


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


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com


--- Comment #2 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-09-18 10:33:52 PDT ---
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.

See some related discussion in
http://d.puremagic.com/issues/show_bug.cgi?id=4290

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