Compiling Templates
Kagamin
spam at here.lot
Thu Jul 2 07:07:19 PDT 2009
bearophile Wrote:
> Kagamin:
>
> > bearophile Wrote:
> >
> > > Most of the things you can do with templates can be done with functions (even not pure ones!) run at compile-time that are also allowed to use (and receive/return) a type of compile-time variables of type "type" :-) I think this may lead to a language that's cleaner than C++/D-style templates.
>
> > lisp?
>
> My experience of Lisp is quite limited. How can you do that with lisp? I think we are talking about different things.
Mine is zero :) From what I heard types in lisp are like any other symbols, no syntactic difference. You should only check you invoke right functions on them.
More information about the Digitalmars-d-learn
mailing list