[feature request] 'Strict' ordinal types (overflow check)
Original Reporter info from Mantis: Michal Gawrycki @michalgw
-
Reporter name: Michal Gawrycki
Original Reporter info from Mantis: Michal Gawrycki @michalgw
- Reporter name: Michal Gawrycki
Description:
Could ordinal types be more strict? For example adding var i: byte = 200; ... i:=i+100; will result in i=44 instead of i=300.
I know it will affect performance, but it could be controlled by compiler directive.
In addition, this feature could include range checking {$R+}
Mantis conversion info:
- Mantis ID: 33050
- Monitored by: » @JohnML1 (John Landmesser)