3 ms·
> "Alias" means nothing to a CPU, nor is it an ABI. But the language isn't defined in terms of a CPU. It's defined in terms of abstract semantic rules. You sho
by chrisseaton 9y ago
> "Alias" means nothing to a CPU, nor is it an ABI.
But the language isn't defined in terms of a CPU. It's defined in terms of abstract semantic rules. You shouldn't think about implementation, especially at the CPU level, when talking about semantics.
The idea is that the alias is implicit in pass-by-reference. It isn't implicit in pass-by-value. How you implement that alias is irrelevant for discussion at this level.
- xtrapolate 9y ago> "But the language isn't defined in terms of a CPU." I disagree. I submit the whole reason we pass objects by reference or by value in the first place, has much more to do with conserving computational resources/reducing runtime, than with providing abstract programming semantics for software developers.