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

dennis luehring dl.soluz at gmx.net
Fri Feb 3 04:43:55 PST 2012


Am 03.02.2012 13:34, schrieb bls:
> On 02/03/2012 04:00 AM, Jonathan M Davis wrote:
>>  D interfaces_do_  allow for function implementations under certain
>>  circumstances.
>>
>>  - Jonathan M Davis
>
> A code snippet please.

http://dlang.org/interface.html

interface D
{
   void bar() { } // error, implementation not allowed
   static void foo() { } // ok
   final void abc() { } // ok
}


More information about the Digitalmars-d mailing list