template this parameters for constructors

kenji hara k.hara.pg at gmail.com
Wed Feb 20 08:23:38 PST 2013


Constructor should check its qualifier as a switch to select construction
strategy. It is described in TDPL, but it has not been yet implemented.

The combination of constructor and TemplateThisParameter would affect to
that not-implemented feature. As a conclusion, its semantics is YET NOT
DEFINED.

(Similar thing exists with "inout constructor". It is not also yet defined.)

Kenji Hara

2013/2/21 Gor Gyolchanyan <gor.f.gyolchanyan at gmail.com>

> On Wed, Feb 20, 2013 at 7:29 PM, Timon Gehr <timon.gehr at gmx.ch> wrote:
>
>> On 02/20/2013 03:37 PM, Gor Gyolchanyan wrote:
>>
>>> ...
>>>
>>>
>>> Is there any change of this being fixed any time soon?
>>> ...
>>>
>>
>> According to the online documentation it seems like it should work:
>>
>> http://dlang.org/template.**html#TemplateThisParameter<http://dlang.org/template.html#TemplateThisParameter>states:
>>
>> "TemplateThisParameters are used in member function templates to pick up
>> the type of the this reference."
>>
>> http://dlang.org/class.html states:
>>
>> Classes consist of:
>>     ...
>>     * member functions
>>         ...
>>         * Constructors
>>
>> I guess just post it to bugzilla.
>>
>
> 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.
>
> --
> Bye,
> Gor Gyolchanyan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130221/a6917708/attachment-0001.html>


More information about the Digitalmars-d mailing list