template this parameters for constructors

Jacob Carlborg doob at me.com
Wed Feb 20 07:46:34 PST 2013


On 2013-02-20 16:38, Gor Gyolchanyan wrote:

> http://d.puremagic.com/issues/show_bug.cgi?id=9551
>
> I really really hope this gets fixed soon, because my project is stuck
> because of this.

You can't pass the static type to the base class, just as a workaround?

class Base (T) { }

class Sub : Base!(Sub) { }

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list