Thread: The C FAQ
View Single Post
  #2 (permalink)  
Old 02-06-2010, 08:32 PM
Seebs
Guest
 
Posts: n/a
Default Re: The C FAQ

On 2010-02-06, jacob navia <jacob@jacob.remcomp.fr> wrote:
> MSDOS died some 20 years ago (more or less).
>
> CAN WE GET RID OF THAT?


The most recent edition of Schildt's "C: The Complete Reference" still
has near and far pointers. And, whether we like it or not, there's still
code out there that has those references in it, and someone might need
to port it.

> This is plain wrong. You CAN do this within a function in standard C.
> That should be mentioned there. ANd NOT only with const but with any
> variable of integer type.


It's not accurate for C99 or GNU C. The problem is that the question used
"array size" as an example of something which implicitly needed an "integer
constant", but of course, it's not anymore.

> That should be at the beginning, and the whole answer must be changed
> to reflect the fact that standard C accepts this!


"must" seems a little strong.

I agree that it would be great if Steve updated the FAQ. But, since I'm not
paying him to do it, I don't feel like I'm in a great position to impose
conditions or requirements.

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
Reply With Quote