`uint(-1)` doesn't work only because it can be proven bad at compile time. The following compiles and overflows: var i = -1 echo uint(i) Run
- Why does 'string' and 'len' use 'int' rather than 'uint' for ... randbox
- Why does 'string' and 'len' use 'int' rather than 'uint'... Hlaaftana
- Why does 'string' and 'len' use 'int' rather than 'u... demotomohiro
- Why does 'string' and 'len' use 'int' rather tha... kobi
- Why does 'string' and 'len' use 'int' rather... Araq
- Why does 'string' and 'len' use 'int' r... randbox
- Why does 'string' and 'len' use 'in... xigoi
- Why does 'string' and 'len' use... Zoom
- Why does 'string' and 'len' use... demotomohiro
- Why does 'string' and 'len' use... Araq
- Why does 'string' and 'len' use... Jehan
- Why does 'string' and 'len' use... Zoom
- Why does 'string' and 'len' use... Araq
- Why does 'string' and 'len' use... Zoom
- Why does 'string' and 'len' use... Araq
- Why does 'string' and 'len' use... demotomohiro
- Why does 'string' and 'len' use... mratsim