4 ms·
If I correctly understand what you are referring to, then there are four variants, not three. And those four variants are the product of two orthogonal binary c
by danbruc 9y ago
If I correctly understand what you are referring to, then there are four variants, not three. And those four variants are the product of two orthogonal binary choices and we have names for all of them. There are value types and references types and you can pass each of them by value or by reference for a total of four variants. There are of course actually even more variants, but they are not really relevant for the discussion at hand.
- lisper 9y ago> those four variants are the product of two orthogonal binary choices and we have names for all of them Yes, but the two variants that matter most are both pass-by-value. There is not a single language in common use today that is pass-by-reference by default. In fact, only C++ (and Pascal, but who uses Pascal any more?) even allows this as an option.