Named constructors

12345swordy alexanderheistermann at gmail.com
Wed Jan 9 21:49:08 UTC 2019


On Wednesday, 9 January 2019 at 19:04:33 UTC, Daniel Kozák wrote:
> On Wednesday, 9 January 2019 at 18:24:28 UTC, 12345swordy wrote:
>> That solution has a compile time cost.
>
> I do not see any compile time cost, what do you mean?

You are using templates in that code, that going to have compile 
time associated with it(especially recursive templates).

Regardless, your code uses the hidden symbol ._ctor! Which if you 
find yourself in a such situation then something is severely 
wrong.

Alex


More information about the Digitalmars-d mailing list