CDECL source code
Doug Gwyn
gwyn at smoke.brl.mil
Sat Nov 24 04:21:01 AEST 1990
In article <12671 at ganymede.inmos.co.uk> conor at inmos.co.uk (Conor O'Neill) writes:
>Doesn't anybody else see the irony of needing a program to write
>C declaration syntax?
"cdecl" actually translates the other way around, but...
>And some people teach this language to beginners....
While I don't think that C is a good choice for a first programming
language, C declarations are not hard to code if one has learned C
properly. For one thing, typedefs can always be used to make the
nesting easy to handle. The conceptual complexity of "pointer to
arrays of pointers to functions taking structures containing ..."
is the same no matter what syntax is used to declare it; such types
are sufficiently complex that the mind can't take in all the aspects
at once, but must analyze it in steps. Properly selected typedefs
can materially assist in that analysis.
More information about the Comp.lang.c
mailing list