[Issue 2785] New: Interfaces should be able to require non-member functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 2 10:56:52 PDT 2009


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

           Summary: Interfaces should be able to require non-member
                    functions
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: andrei at metalanguage.com


This should work:

interface Foo
{
    extern void bar(int, Foo, double);
}

meaning that a non-member function bar should exist that accepts an int, the
implementor of Foo, and a double.


-- 



More information about the Digitalmars-d-bugs mailing list