array/Array: "hard" bounds checking

bauss jj_1337 at live.dk
Thu Feb 22 09:39:30 UTC 2018


On Thursday, 22 February 2018 at 05:22:19 UTC, TheFlyingFiddle 
wrote:
>
> Eg:
>
> uint a = 3;
> int b = -1;
>
> assert(a > b); //No idea what should happen here.

This is what happens:

assert(cast(int)a > b);


More information about the Digitalmars-d-learn mailing list