Even with modules, if you expose such types over the ABI, naturally the machine code memory layout will change, this is an issue regardless of the language.