Re: What is the sub interface?

2009-03-24 Thread Christopher Wright
Ary Borenszweig wrote: You wouldn't have to break your head if implementing an interface meant "having the methods declared in that interface". No error should appear in C2. What's the rationale behind this behaviour? Naming collisions and different library versions. In practice, I suspect th

Re: What is the sub interface?

2009-03-24 Thread Ary Borenszweig
Haruki Shigemori escribió: (1) interface A {void a();} interface B : A {} (2) interface B {void a();} If both interfaces of B are the *same* when paying attention to interface B, I think that the next code is invalid-accept about class C2. Because class C2 do not have a method "void a(){}". ht

What is the sub interface?

2009-03-24 Thread Haruki Shigemori
(1) interface A {void a();} interface B : A {} (2) interface B {void a();} If both interfaces of B are the *same* when paying attention to interface B, I think that the next code is invalid-accept about class C2. Because class C2 do not have a method "void a(){}". http://www.digitalmars.com/d/2.