How to parse this?
Doug Gwyn
gwyn at smoke.brl.mil
Sun Jan 20 19:31:18 AEST 1991
In article <1991Jan19.171622.22801 at santra.uucp> sja at sirius.hut.fi (Sakari Jalovaara) writes:
>How about:
> typedef char typename;
> int f (int (typename []));
>Is "f" compatible with
> int f (int func (char arr[]));
>or
> int f (int arr[]);
I wish I understood your example..
What the standard means is that "if an identifier in such contexts
CAN be taken as a typedef name, then it SHOULD be taken as a typedef name".
And, yes, this has ramifications for parsers.
More information about the Comp.lang.c
mailing list