toString multiple overrides

2012-02-10 Thread Ellery Newcomer
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";

Re: toString multiple overrides

2012-02-10 Thread Jonathan M Davis
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

Re: toString multiple overrides

2012-02-11 Thread Manfred Nowak
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 ]

Re: toString multiple overrides

2012-02-11 Thread Jacob Carlborg
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

Re: toString multiple overrides

2012-02-11 Thread Timon Gehr
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

Re: toString multiple overrides

2012-02-13 Thread Steven Schveighoffer
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!()