how to instantiate explicitly template parameters in struct A(T1){this(T2)(){...}}

Timothee Cour thelastmammoth at gmail.com
Mon May 13 21:37:15 PDT 2013


> __ctor is a 'this' call, it needs a this (BTW, I get different errors than
> you):

Seems like not (see my corrected bug in previous post)

> Not sure how you would do that in one line

ditto

>> Why not use 'this' instead of '__ctor', and make it documented (and
>> reliable, ie work in the above case) ?
>> I don't see how that could create ambiguity, and that would solve the
>> problem raised in this thread.
>
>
> You could do that.  It may have some ambiguous syntax implications.

I really can't think of any, and I think it would just make sense,
given that it'd match the way the function is declared.


More information about the Digitalmars-d-learn mailing list