[Issue 6559] Compiler message expression formatting does not match phobos

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 27 17:55:29 PST 2012


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich at gmail.com
         Resolution|                            |FIXED


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-12-27 17:55:28 PST ---
Incidentally it seems to be fixed:

D:\dev\code\d_code>rdmd test.d
[1, 2, 3]  -- CT
DMD v2.061 DEBUG
[1, 2, 3]  -- RT

It really is invalid to ask CT pragma to match Phobos formatters.

Note however that the new format in 2.061 works at compile-time, therefore you
can have a 100% match if you use it in a pragma:

import std.stdio;
import std.string;
immutable arr = [ 1 , 2 , 3 ];
void main()
{
    pragma(msg, format("%s", arr));
}

In 2.060 you can use xformat instead.

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