• blackbrook@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    9 days ago

    Right, a stack that was itself read-only would be hard to use! :^D C definitely lets you modify the things in the stack. (Ah the fun of bugs where you accidentally overwrite other shit on the stack!) I don’t know Rust, but it would not surprise me if Rust only had immutable things on the stack.