[Issue 5080] breaking const-correctness with class/interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 9 08:29:40 PST 2011


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



--- Comment #8 from Don <clugdbug at yahoo.com.au> 2011-02-09 08:27:11 PST ---
The patch causes this code to fail to compile:
----
class S { }

void main()
{
    S s1 = new S;
    const S s2 = new S;
    assert(s1!=s2);
}
---
Even so, I think the patch is probably correct -- it's a problem with opEquals.
But this means that more work is required before this patch could be applied.

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