Templates are way lazy. Is this expected behaviour?

Bruno Medeiros brunodomedeiros+spam at com.gmail
Tue Apr 29 12:00:05 PDT 2008


Ary Borenszweig wrote:
> 
> So, basically, I can change a template's instantiation by overriding the 
> symbols it uses. Is that expected behaviour?
> 

Yes, but only in the case of mixins. Regular template instantiation 
behaves as you'd expect.
If I recall correctly, there have been those who have argued against 
this behavior of mixins.



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



More information about the Digitalmars-d mailing list