template this parameters for constructors

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Wed Feb 20 07:56:49 PST 2013


This adds boilerplate, that I can't afford. I need to transparently add
dynamic dispatch to classes and I can't modify all of them. Besides, I have
had experience with this previously and it causes a ton of problems,
because there's no way of making sure the static type is passed and its'
the right one.


On Wed, Feb 20, 2013 at 7:46 PM, Jacob Carlborg <doob at me.com> wrote:

> On 2013-02-20 16:38, Gor Gyolchanyan wrote:
>
>  http://d.puremagic.com/issues/**show_bug.cgi?id=9551<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
>



-- 
Bye,
Gor Gyolchanyan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130220/af78ac61/attachment.html>


More information about the Digitalmars-d mailing list