// Integer overflow handled differently when built for debug vs release // gtowell Oct 2023 fn main() { println!("Hello, world!"); let mut ii : i8 = 0; let zz : f64 = ii as f64; for jj in 1..127 { ii = ii + jj; println!("{jj} {ii}"); } main1(); } // how is reading off the end of an array handled?? // answer exception (panic) thrown in both debug and release. fn main1() { let arr = [1,2,3,4]; for ii in 0..6 { println!("{ii} {}", arr[ii]); } }