• mmddmm@lemm.ee
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 days ago

    Apart from dynamically typed languages which need to store the type with the value

    You know that depending on what your code does, the same C that people are talking upthread doesn’t even need to allocate memory to store a variable, right?

      • timhh@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        1 day ago

        I think he’s talking about if a variable only exists in registers. In which case it is the size of a register. But that’s true of everything that gets put in registers. You wouldn’t say uint16_t is word-sized because at some point it gets put into a word-sized register. That’s dumb.