[phobos] static opCall for construction

Masahiro Nakagawa repeatedly at gmail.com
Sat May 29 22:37:35 PDT 2010


OK, I will rewrite.


On Sun, 30 May 2010 14:22:17 +0900, Brad Roberts <braddr at puremagic.com>  
wrote:

> I'm all for removal of static opCall, and possibly opCall altogether.
>
> On 5/29/2010 9:50 PM, Andrei Alexandrescu wrote:
>> I think static opCall is there only as a workaround during the days
>> where struct constructors were missing. It's a good idea to replace it
>> throughout.
>>
>> Andrei
>>
>> On 05/29/2010 11:40 PM, Masahiro Nakagawa wrote:
>>> I noticed that some structs use static opCall for construction(lines,
>>> CodePoints, etc...).
>>> I think constructing struct should use this().
>>> What are the merits of static opCall?
>>> I will rewrite if static opCall doesn't have merits.
>>>
>>>
>>> Masahiro
>>> _______________________________________________
> _______________________________________________
> phobos mailing list
> phobos at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/phobos



More information about the phobos mailing list