[Issue 4266] add support for structs in std.format.doFormat
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Feb 18 10:08:32 PST 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=4266
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-18 10:08:30 PST ---
Did the code used to just fail to compile before? Now it prints the values:
import std.string;
import std.stdio;
struct S
{
    int x;
    float y;
    string z;
}
void main()
{
    string s = format("%s", S());
    writeln(s);
}
> S(0, nan, "")
If that's good enough you can close with "WORKSFORME", thanks.
-- 
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