multiple overrides of same
function
So this behavior is new, but is it sensical?
Sample code:
mixin template T1(){
string toString(){
return "1";
}
}
mixin template T2(){
string toString(){
return "2";
}
}
class X{
mixin T1!()
On 02/11/2012 08:48 AM, Jonathan M Davis wrote:
On Friday, February 10, 2012 22:41:20 Ellery Newcomer wrote:
dmd 2.057
Two mixin templates, each define toString, mix them in to your class and ..
Error: function test.X.T2!().toString multiple overrides of same function
So this behavior is new
On 2012-02-11 05:41, Ellery Newcomer wrote:
dmd 2.057
Two mixin templates, each define toString, mix them in to your class and ..
Error: function test.X.T2!().toString multiple overrides of same function
So this behavior is new, but is it sensical?
Sample code:
mixin template T1(){
string
Ellery Newcomer wrote:
> So this behavior is new, but is it sensical?
It is a bug:
If a mixin has a MixinIdentifier, it can be used to disambiguate
[cited 11 Feb 2012 from
http://www.d-programming-language.org/template-mixin.html ]
On Friday, February 10, 2012 22:41:20 Ellery Newcomer wrote:
> dmd 2.057
>
> Two mixin templates, each define toString, mix them in to your class and ..
>
> Error: function test.X.T2!().toString multiple overrides of same function
>
> So this behavior is new, but is it sen
dmd 2.057
Two mixin templates, each define toString, mix them in to your class and ..
Error: function test.X.T2!().toString multiple overrides of same function
So this behavior is new, but is it sensical?
Sample code:
mixin template T1(){
string toString(){
return "1";