Lars T. Kyllingstad <pub...@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

Reply via email to