[Issue 6559] New: [CTFE-ish] Inconsistent array formatting at runtime vs compiletime

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 26 11:30:42 PDT 2011


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

           Summary: [CTFE-ish] Inconsistent array formatting at runtime vs
                    compiletime
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2011-08-26 11:30:41 PDT ---
> type testArrayOut.d
import std.stdio;
immutable arr = [ 1 , 2 , 3 ];
void main()
{
        pragma(msg, arr);
        writeln(arr);
}

> dmd testArrayOut.d
[1,2,3]

> testArrayOut
[1, 2, 3]

The formatting should be the same at both runtime and compile-time.

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