4 ms·
Isn’t ptr+count always two registers if passed as two parameters too? It seems like just a syntactic difference. A ptr to an array of unknown length can’t be u
by alkonaut 7y ago
Isn’t ptr+count always two registers if passed as two parameters too? It seems like just a syntactic difference.
A ptr to an array of unknown length can’t be used without the length being passed around next to it whereever it’s passed.
You cant deref ptr+i without knowing that it’s under length etc.
Two bits of data that belong together seems like they would be convenient to pass (or return!) as one argument or return value.
It’s especially terrible with methods that e.g take two lists and return a third. That should be two arguments and a return value, not six arguments.