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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 3 21:54:13 PDT 2009


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





------- Comment #4 from sandford at jhu.edu  2009-04-03 23:54 -------
(In reply to comment #0)
I like the concept of extern functions in this concept, though it does rise
questions of what scopes/modules are used for match searching. However, the use
of Foo to mean the class name seems like the wrong keyword. What if I truly
wanted a function that took a Foo? Also, it makes these function definitions
behave differently than definitions outside the interface. Perhaps 'super' or
'typeof(this)'?


-- 



More information about the Digitalmars-d-bugs mailing list