[Issue 11901] New: real win64

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 10 23:23:47 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11901

           Summary: real win64
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: run3 at myopera.com


--- Comment #0 from run3 at myopera.com 2014-01-10 23:23:46 PST ---
import std.stdio;

void main()
{
    real x[2] = [1L, 2L];
    real *y = &x[0];

    writefln("%08X %f", y, *y);
    writefln("%08X %f", y + 1, *(y + 1));
    writeln(x);
}

Compile:
dmd -m64 pointer.d

Output:
0012FB20 0.000000
0012FB2A 0.000000
[6.13064e-318, 6.13064e-318]

Compile:
dmd pointer.d

Output:
0018FE18 1.000000
0018FE22 2.000000
[1, 2]

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list