Thread overview
Future directions - templates
Sep 13, 2003
Erik Baklund
Sep 13, 2003
Sean L. Palmer
Sep 14, 2003
Matthew Wilson
September 13, 2003
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


September 13, 2003
"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


September 14, 2003
> 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.