[Issue 2050] interfaces should allow final methods with body
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 28 01:56:57 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2050
aarti at interia.pl changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aarti at interia.pl
------- Comment #3 from aarti at interia.pl 2008-04-28 03:56 -------
It seems that same rationale applies to static functions in interfaces.
Currently below code doesn't work, as static functions can not have body in
interface.
---
int a;
interface A {
static int number() {
return a;
}
}
---
Current situation is just plainly wrong as it is possible to put static
functions into interfaces and it is not possible to use them at all - linker
error is emitted during compilation (what is understandable as static functions
are not virtual).
--
More information about the Digitalmars-d-bugs
mailing list