On 11/11/2019 21:55, Jonathan Gilbert wrote:
Basic method (or, if you will, a "chord" with only one "note"):
(caller)
|
void Add(int X, int Y)
|
{ output(X + Y) }
A "chord" with two "notes":
(caller) (caller)
| |
void AddX(int X) void AddY(int Y)
| |
`-----------.-----------'
|
{ output(X + Y) }
The specific details differ from what I've written here. In Polyphonic
C#, you don't have to instantiate a chord, you simply start calling
methods, and the runtime matches up complete sets dynamically.
sounds like "Currying" a function but with the parameters taken in any
order, though, in a sense, perhaps not generating intermediate functions...
Philip