@Klaymore@sh.itjust.works to Programmer Humor@programming.devEnglish • 1 year agoHappens all the timesh.itjust.worksimagemessage-square22arrow-up1523
arrow-up1523imageHappens all the timesh.itjust.works@Klaymore@sh.itjust.works to Programmer Humor@programming.devEnglish • 1 year agomessage-square22
minus-square@ParanoiaComplex@lemmy.worldlinkfedilink11•edit-21 year agoI don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
minus-square@trxxruraxvr@lemmy.worldlinkfedilink14•1 year agoAfaik rust doesn’t have functions like that as they lead to unsafe code that’s impossible to check variable lifetimes for. I think OP created the jump function.
minus-square@RustyNova@lemmy.worldlinkfedilink14•1 year agoThey created it. The compiler says the jump function is in src/main.rs
I don’t know Rust but jump typically moves the program counter, where the height represents the number of instructions to move
Afaik rust doesn’t have functions like that as they lead to unsafe code that’s impossible to check variable lifetimes for. I think OP created the jump function.
They created it. The compiler says the jump function is in src/main.rs