Summary: Can't define opEquals for immutable types
           Product: D
           Version: 2.039
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Tomasz SowiƄski <> 2010-01-20 11:26:17 
PST ---
immutable struct S {
    bool opEquals(ref S s) { ... }

The above doesn't compile, as the parameter is required to be const and the
function to be const as well and it's immutable in both cases. Since an
immmutable type can't be less than immutable such a requirement is pointless.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to