On Fri, 05 Jul 2024 19:00:58 -0700, Keith Thompson wrote:
C assumes byte addressibility, but it doesn't assume that bytes are 8
bits.
The PDP-10 had 36-bit words and could operate on bit fields of any size from 1 to 36 bits.
But it couldn’t address them.
I know that "call by reference" is the usual formal term, but I
personally prefer "pass by reference".
The terms "call by reference" and "call by value" emphasize the call, implying that all arguments in a given call are passed with the same mechanism. In some languages that's true (C argument passing is purely
by value, and Fortran, as I understand it, is purely by reference), but
in others (C++, Pascal, Ada) you can select by-value or by-reference for
each parameter. "Pass by (reference|value)" feels more precise.
I haven't checked, but I suspect the terms "call by (reference|value)" predate languages that allowed the mechanism to be specified for each parameter.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (1 / 15) |
Uptime: | 160:51:46 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,056 |
Messages: | 6,416,494 |