4 ms·
What fans of unsigned integers seem to really want is array access in the form of x[i %mod% LEN]. While signed integers "kind of" give you an error on overflow
by Flocular 5y ago
What fans of unsigned integers seem to really want is array access in the form of x[i %mod% LEN]. While signed integers "kind of" give you an error on overflow (Except your unlucky or somebody was malicious).
Is there a way to combine both? As in give me an error on overflow for "debug builds" and always mod-LEN on "release builds"?