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

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


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





--- Comment #1 from Serg Kovrov <kovrov+puremagic at gmail.com>  2009-07-04 17:23:14 PDT ---
An empty postblit function helps to workaround this issue:

struct Test
{
    int foo;
    int bar;
    this(this) {}  // this somehow fixes 'alias this' blitting
    alias foo this;
}

Still, this is very nasty bug, as error is completely silent.

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