[Issue 7675] std.format needs better exception messages

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 26 11:55:54 PDT 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2012-05-26 11:57:34 PDT ---
(In reply to comment #1)

>     enforce(specCount == T.length, 
>             new Exception(format("Arg count %s doesn't match spec count %s.",
> T.length, specCount), file, line));

Andrei wants formatted printing to be sloppy, so currently this doesn't raise
an error:

import std.string;
void main() {
    string res = format("%s ", 1, 2);
}

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