Short list with things to finish for D2
Simen kjaeraas
simen.kjaras at gmail.com
Mon Nov 23 15:33:07 PST 2009
Lars T. Kyllingstad <public at kyllingen.nospamnet> wrote:
> How about
>
> auto template MixMeInAutomatically(T) { ... }
>
> void main()
> {
> MixMeInAutomatically!int;
> ...
> }
>
> Would this be ambiguous? It would be using auto for something completely
> new, but it would at least make sense. (More so than macro, in my
> opinion.)
>
> -Lars
I believe I have suggested this syntax earlier:
mixin template foo( ) {
}
struct S {
foo!();
}
I'm unsure if there would be ambiguities, though.
--
Simen
More information about the Digitalmars-d
mailing list