Inheritance of purity

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Feb 17 09:40:39 PST 2012


On Fri, Feb 17, 2012 at 05:27:11PM +0000, 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 ?

I think it would make sense to do this.


--T


More information about the Digitalmars-d mailing list