No constructor for a templated class?

Philippe Sigaud philippe.sigaud at gmail.com
Sun Jul 25 14:30:34 PDT 2010


On Sun, Jul 25, 2010 at 16:08, div0 <div0 at sourceforge.net> wrote:

> On 25/07/2010 13:55, Philippe Sigaud wrote:
>
>> OK, I must be tired, I don't know.
>>
>
> Nope you're not tired.
> Templated constructor functions are not currently supported in D. :(
>

Ouch.

I did that many many times, but for structs. Case in point, I encountered
this while deciding to switch from struct to classes, thinking inheritance
would suppress lot of code duplication.  Aw, man, first time in months I use
classes in D, and it's killed in the womb.
OK, there are solutions for for what I envision, but that will be more
painful.

Thanks, div0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20100725/5d138434/attachment.html>


More information about the Digitalmars-d-learn mailing list