Proposition for change in D regarding Inheriting overloaded methods

Bruno Medeiros brunodomedeiros+spam at com.gmail
Thu Aug 9 07:04:55 PDT 2007


Walter Bright wrote:
> Regan Heath wrote:
> 
> There is no runtime check or cost for it. The compiler just inserts a 
> call to a library support routine in D's vtbl[] entry for B.set(int).
> 
>> Is this done at runtime instead of compile time because the parameters 
>> cannot always be determined at compile time?
> 
> Yes.
> 

Huh? I don't understand this, how come it's not possible to detect it at 
compile time? Doesn't the full signature of all methods from both parent 
and child class have to be know at compile time?

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list