Mon, 24 Aug 2009 00:25:19 -0400, Chad J wrote:
> Suggestion 1:
>
> For any template whose argument list ends with a string argument, such
> as this one:
>
> template foo( T, string arg )
> {
> ...
> }
>
> ... allow it to be instantiated (or mixed in) like so:
>
> foo!(T)
> {
> // Some toke
Chad J wrote:
>
>
> Suggestion 1:
>
> For any template whose argument list ends with a string argument, such
> as this one:
>
> ...
>
>
Suggestion 2:
>
> Let templates include expression statements. Optionally make it invalid
> to NOT
So I'm seeing this recurring pattern on the newsgroup:
Person 1: "Hey we should implement feature X! It'll be awesome!"
Person 2: "Bah, you can implement that in current D code with mixins:"
< insert example of typical mixin usage in D >
mixin(Foo!(args,
`//blah blah
`));
OR
mixin Foo!(args