On Tue, 11 Oct 2005 02:13:49 +0200, Skarmander
Completely bizarre, yet making sense in some perverse way. That would
mean that in 'typedef const volatile unsigned long int cvulong_t', the
first six words can appear in any order, right?
Yes. Placing the sc-spec (in this case typedef) anyplace other than
first is officially 'obsolescent' (aka deprecated) since C90, but was
not removed in C99. What may happen in C>=0x is unknown.
There are reasonable arguments for placing the qualifiers before type
and also reasonable arguments for placing them after, so I expect the
Standard will forever allow both. I suppose it might (be changed to)
allow only before or after but not mixed, but that probably doesn't
benefit implementors and arguably doesn't help users very much.
Moreover it 'feels' inconsistent with the feature that you can have
qualifiers in a typedef type already or add them where it is used.
Similarly there are reasonable arguments for different orders among
the qualifiers, and among the type-specs (signed long vs long singed).
- David.Thompson1 at worldnet.att.net