Optimize my code =)

Stanislav Blinov stanislav.blinov at gmail.com
Tue Feb 18 00:33:13 PST 2014


On Tuesday, 18 February 2014 at 07:45:18 UTC, bearophile wrote:
> Stanislav Blinov:
>
>> that explicit ctor
>> for Dimension is completely unnecessary too.
>
> I like a constructor(s) like that because it catches bugs like:
>
> auto d = Dimension(5);

Hmmm... yeah, ok, not completely unnecessary :)


More information about the Digitalmars-d-learn mailing list