On Friday, 15 January 2016 at 10:16:41 UTC, Warwick wrote:
I though C style casts were not supported? But when I accidentaly did

int i;
if (uint(i) < length) ....

it compiled and worked fine. Whys that?

This is not a cast. You call constructor `uint(int x)`.
In the same time `uint(somethingTypeOfLong)` would not work, but cast(long). --Ilya

Reply via email to