N
Nick Keighley
Nick Keighleywrote:
I maintain that ex-ISO-Pascalers write better organized code.
of course.
Nick Keighleywrote:
I maintain that ex-ISO-Pascalers write better organized code.
Ben said:Um, that's your own code, from article <[email protected]>.
... snip about Pascal lessons ...
That's C code, not Pascal code. In proper Pascal you do some
things quite differently, to take proper advantage of look-ahead
through f^, etc.
In proper Pascal you do some things quite differently, to take proper
advantage of look-ahead through f^, etc.
Nick said:he's trying to refute your statement that being an ex- (or maybe
current) ISO Pascal programmer led to you having a particular "good"
programming style. He did this by quoting some of your C code
which he presumably thought was not particularly Pascal like
(and presumably not particularly good).
The extern keyword in C does not specify a storage class, it specifies
a linkage type. It can only be applied to objects with static storage
duration, or to functions. But it does not in itself confer any sort
of storage duration on objects, merely requires that they already have
static storage duration.
David Thompson said:This is conflating two things. C header (#include'd) files are just
text, the same as source files.
Kenny said:Oops, now you've done it. In the religion of CLC, you are not being
allowed to be saying that, any more than you are allowed to use the
S-word. There could exist a mythical machine where the header files are
not even files at all (Yes, really, mama. I read that right there on the
CLC!)
Chris said:RISC OS C is not mythical and has the standard headers embedded in the
compiler.
(It also has provision to get the headers from files, but it doesn't
/need/ to do that.)
Chris said:RISC OS C is not mythical and has the standard headers embedded
in the compiler.
(It also has provision to get the headers from files, but it
doesn't /need/ to do that.)
Oops, now you've done it. In the religion of CLC, you are not being
allowed to be saying that, any more than you are allowed to use the
S-word. There could exist a mythical machine where the header files are
not even files at all (Yes, really, mama. I read that right there on the
CLC!)
Chris Dollin said:RISC OS C is not mythical and has the standard headers embedded in the
compiler.
(It also has provision to get the headers from files, but it doesn't
/need/ to do that.)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.