what is a usage pattern for "static" in an interface?

Marco Leise Marco.Leise at gmx.de
Fri Feb 3 21:00:58 PST 2012

Am 04.02.2012, 02:54 Uhr, schrieb Martin Nowak <dawg at dawgfoto.de>:

> If override were mandatory in implementation classes we could easily  
> allow implementations
> in interfaces.

Do you have a good example? Mine are currently all solvable with final  
methods in interfaces, like

	interface ... {
		@property size_t length();
		@property final bool empty() { return length == 0; }

More information about the Digitalmars-d mailing list