Overloading/Inheritance issue

Steve Schveighoffer schveiguy at yahoo.com
Wed Aug 1 14:42:05 PDT 2007


Chris Nicholson-Sauls Wrote:


> Intended, yes.  Wanted?  Not by all.  (Which is why it keeps coming up 
> again, and again, and again... ad nauseum.)  I haven't personally 
> scanned the specs to see if its at least now explicitly shown as the way 
> to do this; if it isn't, it should be.

It's sort of in the spec, but the example shows the two overrides differing by paramter types int and long.  In this case, at least one can be implicitly casted to the other, but in my example, there is no doubt which method I intended to call.

-Steve



More information about the Digitalmars-d mailing list