Inheritance of purity

Walter Bright newshound2 at digitalmars.com
Fri Feb 17 11:22:12 PST 2012


On 2/17/2012 9:27 AM, Michal Minich wrote:
> Will the 'inheritance' of attributes work for interfaces too?
>
>       interface I { void foo() @safe pure nothrow const; }
>       class B : I { void foo() { } }  // is it @safe pure nothrow const ?

Yes.


More information about the Digitalmars-d mailing list