3 ms·
Similar problems happen even in C. Suppose you have this line inside a function: X *y; Are you declaring a pointer, or are you performing multiplication?
by DerekL 4y ago
Similar problems happen even in C. Suppose you have this line inside a function:
X *y;
Are you declaring a pointer, or are you performing multiplication? It depends on what “X” is.
- tsimionescu 4y agoTrue, though in this case as well, just replacing type first to type last would presumably lead to `y *X` which doesn't help so much in resolving ambiguity.