[Issue 3135] New: 'alias this' in struct breaks blitting

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 4 17:17:32 PDT 2009


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

           Summary: 'alias this' in struct breaks blitting
           Product: D
           Version: 2.030
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kovrov+puremagic at gmail.com


struct Test
{
    int foo;
    int bar;
    alias foo this; // this is important
}

void main()
{
    Test t1 = Test(3,5), t2;
    t2 = t1;  // blitting is messed up?
    assert (t1.foo == t2.foo);
    assert (t1.bar == t2.bar); // will throw
}

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