Summary: Cannot declare a delegate variable for const member
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from klickverbot <> 2010-09-07 15:38:30 PDT 
Given �class A { void foo() const {} }; A a = new A;�,
�typeof(&� yields �void delegate() const�.

However, trying to declare a delegate variable of this type like �void
delegate() const dg; dg = &;� fails with �const/immutable/shared/inout
attributes are only valid for non-static member functions� or, depending on the
scope one tries to declare the variable in, even more cryptic error messages.

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

Reply via email to