CBFalconer said:
You can get away with that in comp.arch.embedded, but not here.
This newsgroup discusses PORTABLE standard C.
That seems to me to restrictive a view. There's no
group charter (the group antedates charters), so topicality
is not subject to hard-and-fast arbitration. But in my
view the subject of the newsgroup is C: its uses, its idioms,
its strengths. Also its abuses, its slang, and its faults.
Portability is a recurring and important theme. IMHO
there is a lot of unportable C that could be made portable
at little if any cost -- but there are also situations where
the Right Answer is to employ a construct that's specific to
one environment (hence non-portable) or to a restricted class
of environments (hence ditto). The Rationale makes explicit
mention of the usefulness of non-portable code, and I don't
see any reason for this newsgroup to shun it.
As I said, a good deal of non-portable code is non-portable
for no good reason, and an important function of c.l.c. is to
point out portable alternatives for gratuitous importabilities.
But when somebody's having trouble with a device I/O register,
the useful response from c.l.c. isn't "not portable, go away"
but "you should probably use `volatile'."
C-as-it-is is a proper topic for the newsgroup. We can
steer towards C-as-it-should-be, but sometimes we must
acknowledge that C-as-it-needs-to-be can be a different animal.