www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3052] New: Passing alias to member function does not work (2/2)


           Summary: Passing alias to member function does not work (2/2)
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: andrei metalanguage.com

class A
    A next;

    static void fun(alias fun)(A n)

    static void gun()
        void hun(A a)

Even after making all functions static, the code does not work with the error:

template instance cannot use local 'hun' as parameter to non-global template
fun(alias fun)

Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jun 04 2009