January 23, 2003
"Garen Parham" <garen_nospam_@wsu.edu> wrote in message news:b0n25h$1m0u$1@digitaldaemon.com...
> > Templates in D are more than just functions. An entire group of declarations can be wrapped in a template block, conceptually like wrapping a group in a class block.
> I only chose functions there as an illustrate example.  With a "block"
>  are you thinking of something like:
> type T {
> .. // all code in here parameterized by T
> }
> ?

No, like a class declaration can enclose variables, functions, enums, etc.

> > Explicit instantiation is an enormous simplification, both conceptually and practically.
> In ADA I didn't find it of much value and liked it being implicit in C++. In what sense is it simpler?  Easier to implement?

Yes, it's easier to implement, easier to write, and easier to read the code.

> Btw I think D looks really neat, save for the declarator syntax.  Way to
go.
> :)

Thanks!


January 26, 2003
Walter wrote:


> 
> No, like a class declaration can enclose variables, functions, enums, etc.
> 

Ok, cool!

> 
> Yes, it's easier to implement, easier to write, and easier to read the code.
> 

Ok, but still only agree with the first reason.

> 
> Thanks!
> 

yw! :)
1 2
Next ›   Last »