Proposition for change in D regarding Inheriting overloaded methods

Walter Bright newshound1 at digitalmars.com
Tue Aug 7 20:24:54 PDT 2007


Sean Kelly wrote:
> I assume the compiler would not throw an exception for the following case?
> 
> class D : B
> {
>     long square;
>     alias B.set set;
>     void set(long i) { B.set(i); square = x * x; }
>     long squareIt() { return square; }
> }

Nope, no exception thrown.



More information about the Digitalmars-d mailing list