Summary: Static functions in immutable structs/classes needed
           Product: D
           Version: 2.036
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Tomasz SowiƄski <> 2009-12-07 14:28:59 
PST ---
Currently immutable types can't have static functions and I believe this
impediment is a bug:

immutable struct Strukt
    static void funkcja() { }

Should compile but fails with message:
function test.Strukt.funkcja without 'this' cannot be const/immutable

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

Reply via email to