Interface/abstract constructors

2011-05-16 Thread useo
Hey guys, is there any chance to create an abstract constructor like: abstract class ABC { abstract this(); } DMD always says ...this non-virtual functions cannot be abstract - when I use an interface like: interface ABC { this(); } I get a similar error: ...constructors,

Re: Interface/abstract constructors

2011-05-16 Thread Timon Gehr
Hey guys, is there any chance to create an abstract constructor like: abstract class ABC { abstract this(); } DMD always says ...this non-virtual functions cannot be abstract - when I use an interface like: interface ABC { this(); } I get a similar error: ...constructors,

Re: Interface/abstract constructors

2011-05-16 Thread Jonathan M Davis
On 2011-05-16 12:32, useo wrote: Hey guys, is there any chance to create an abstract constructor like: abstract class ABC { abstract this(); } DMD always says ...this non-virtual functions cannot be abstract - when I use an interface like: interface ABC { this(); }

Re: Interface/abstract constructors

2011-05-16 Thread Steven Schveighoffer
On Mon, 16 May 2011 15:32:43 -0400, useo unkn...@unknown.com wrote: Hey guys, is there any chance to create an abstract constructor like: abstract class ABC { abstract this(); } DMD always says ...this non-virtual functions cannot be abstract - when I use an interface like: interface

Re: Interface/abstract constructors

2011-05-16 Thread nrgyzer
== Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel On Mon, 16 May 2011 15:32:43 -0400, useo unkn...@unknown.com wrote: Hey guys, is there any chance to create an abstract constructor like: abstract class ABC { abstract this(); } DMD always says ...this

Re: Interface/abstract constructors

2011-05-16 Thread Steven Schveighoffer
On Mon, 16 May 2011 16:12:05 -0400, nrgyzer nrgy...@gmail.com wrote: == Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel On Mon, 16 May 2011 15:32:43 -0400, useo unkn...@unknown.com wrote: Hey guys, is there any chance to create an abstract constructor like: abstract

Re: Interface/abstract constructors

2011-05-16 Thread nrgyzer
== Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel On Mon, 16 May 2011 16:12:05 -0400, nrgyzer nrgy...@gmail.com wrote: == Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel On Mon, 16 May 2011 15:32:43 -0400, useo unkn...@unknown.com wrote: Hey guys,

Re: Interface/abstract constructors

2011-05-16 Thread Steven Schveighoffer
On Mon, 16 May 2011 16:34:20 -0400, nrgyzer nrgy...@gmail.com wrote: == Auszug aus Steven Schveighoffer (schvei...@yahoo.com)'s Artikel If D supported runtime reflection (and it does to a very very small degree), then you could use it to ensure the correct constructor is available. -Steve