K
Kenny McCormack
Keith Thompson said:If you're trying to write conforming modern C,
I think it is pretty clear that that's the last thing on "luser"'s mind or
list of goals and intentions.
you need to remove *all* occurrences of implicit int.
He "needs" to do no such thing. Besides, I thought that C89 was still the
only "real" standard endoresed by the regs here.
A void function needs to be declared with
an explicit return type of "void".
There you go again. Telling people what they need.
How paternalistic of you!
The "implicit int" feature was removed from the language by the C99
standard.
Which means it is perfectly legal and OK by all standards bodies (including
you, Mr. Kiki!) in C89 code (which is what most people still write).
....
which I see is where the horrid macro definitions:
Keep your editorial comments to yourself, please.
Although the code is terse and may seem unreadable at first,
it can be understood with a little effort. It may help to
understand that the code was written for and by people who
were very familiar with array-centric languages (APL) and who
came from a strong mathematical background. Indeed, one of the
main reasons for adopting a style like this is that it meakes
it easier to reason about and manipulate the code algebraically.
Indeed. So get off their backs, OK!
I'm not convinced about the claimed advantages of the style,
though I suppose it's possible I'm missing something.
We're not here to convince you - or to gain your approval.
Go away!
--
"Although written many years ago, Lady Chatterley's Lover has just
been reissued by the Grove Press, and this fictional account of the
day-to-day life of an English gamekeeper is still of considerable
interest to outdoor minded readers, as it contains many passages on
pheasant raising, the apprehending of poachers, ways to control vermin,
and other chores and duties of the professional gamekeeper.
"Unfortunately, one is obliged to wade through many pages of extraneous
material in order to discover and savor these sidelights on the
management of a Midlands shooting estate, and in this reviewer's opinion
this book cannot take the place of J.R. Miller's Practical Gamekeeping"
(Ed Zern, Field and Stream, November 1959, p. 142).