On Tuesday, 23 April 2013 at 23:25:11 UTC, bearophile wrote:
Mixin templates are a relatively new feature and maybe that
alias use case was not considered, or it was not regarded as
important. What are your use cases of aliasing a mixing
template?
I'm going to post it in a new thread.
Luís Marques:
1) Is it a bug that mixin_not_defined_bug does not produce a
compile-time error, unless it is called? (DMD64 v2.062, OS X)
I think that here D is working according to its current specs.
On the other hand this topic was recently discussed and despite
Andrei the consensus seems t
Consider the following code:
mixin template Bar()
{
void Bar() {};
}
void mixin_ok()
{
mixin Bar;
Bar();
}
void mixin_not_defined_ok()
{
mixin UndefinedMixin; // OK, compile-time error
}
void mixin_not_defined_bug()()