[Issue 3099] New: std.metastrings.Format example can not compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 27 02:18:46 PDT 2009


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

           Summary: std.metastrings.Format example can not compile
           Product: D
           Version: 2.030
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: samhu.samhu at gmail.com
                CC: bugzilla at digitalmars.com


Below code snippet is from std.metastrings:

string s=Format!("Arg %s=%s","foo",27);
writefln(s);// "Arg foo = 27"

can't compile,error msg:
testFormat.d(30): Error: cannot implicitly convert expression ("Arg
%s=%sfoo27") of type const(char[]) to immutable(char)[]


Not sure whether this is a bug.

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