www.digitalmars.com         C & C++   DMDScript  

D - Future directions - templates

reply Erik Baklund <Erik_member pathlink.com> writes:
Hi,

I am a template-addict form the C++ camp and
curios about what direction D templates will take.
Now that we can pass integer values as template parameters;
are there other new features for templates coming up?

erik
Sep 13 2003
parent reply "Sean L. Palmer" <palmer.sean verizon.net> writes:
"Erik Baklund" <Erik_member pathlink.com> wrote in message
news:bjurag$jll$1 digitaldaemon.com...
 I am a template-addict form the C++ camp and
 curios about what direction D templates will take.
 Now that we can pass integer values as template parameters;
 are there other new features for templates coming up?

I think explicit instantiation is holding them back from their true potential. Yes, it'll make the compiler a little harder to write, but it would be so worth it. Walter, I know you have personal reasons for not liking implicit instantiation, but what are the technical reasons behind that? Sean
Sep 13 2003
parent "Matthew Wilson" <matthew stlsoft.org> writes:
 I think explicit instantiation is holding them back from their true
 potential.  Yes, it'll make the compiler a little harder to write, but it
 would be so worth it.

Agreed. foreach cannot be the totality of our collections, and to have a truly effective template based D-STL we'll need implicit instantiation.
Sep 13 2003