A renewed call for interface methods with bodies

BCS BCS at pathlink.com
Thu Jan 24 17:16:41 PST 2008


Burton Radons wrote:
[...]


something just occurred to me:

The only actions that a function body in an interfaces could do to 
"this" is function calls that would have to be virtual (or how could it 
ever do anything) however the code generated for a interface method 
needs to know the type of the object to be able to make the calls 
correctly. The only reasonable way I can see to let interface functions 
have bodies would be to in effect use a mixin.

Can anyone think of a better solution?



More information about the Digitalmars-d mailing list