what is a usage pattern for "static" in an interface?
dennis luehring
dl.soluz at gmx.net
Fri Feb 3 05:12:41 PST 2012
Am 03.02.2012 13:55, schrieb deadalnix:
> Le 03/02/2012 13:02, Jonathan M Davis a écrit :
>> 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.
>>
>
> Java will allow it in its next version. This will actually be more
> powerfull that what exists in D.
Link?
More information about the Digitalmars-d
mailing list