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

Jonathan M Davis jmdavisProg at gmx.com
Fri Feb 3 04:02:04 PST 2012


On Friday, February 03, 2012 09:03:21 dennis luehring wrote:
> Am 03.02.2012 08:40, schrieb Jonathan M Davis:
> > On Friday, February 03, 2012 08:30:31 dennis luehring wrote:
> >>  any idea why static could makes sense in an interface? any example?
> > 
> > The same reason it makes sense in a class. I don't see any difference.
> 
> that also my first thought - but why do c#, java (and c++) don't allow it?

C++ doesn't have interfaces, and C# and Java don't allow function 
implementations of any kind on interfaces. The same is not true for D.

> and what about the public private thing in my example?

It looks like a bug.

- Jonathan M Davis


More information about the Digitalmars-d mailing list