[Issue 3012] bad diagnose miss use std.string.format

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 20 10:52:00 PDT 2009


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


david <davidl at 126.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |
            Summary|string.format is broken     |bad diagnose miss use
                   |                            |std.string.format
           Severity|normal                      |enhancement




--- Comment #3 from david <davidl at 126.com>  2009-05-20 10:51:59 PDT ---
I change this bug to enhancement request for better diagnose.

TypeExp::toElem()   //redundent
testd.d(5): Error: type immutable(char)[] is not an expression     

// not clear enough for one to figure out it rewrites it to format(string,
"abc", "abc");  At least for me in this case. I don't think D newbies can
easily get the idea of this error message correctly.

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