Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #12788

Re: fscan: about it

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: fscan: about it
Date 2011-11-05 13:28 -0700
Organization None to speak of
Message-ID <lnr51me2l5.fsf@nuthaus.mib.org> (permalink)
References <0636e7d1-01db-4dde-9c89-c84840b9b7d6@hc5g2000vbb.googlegroups.com> <9hj8ovF62fU5@mid.individual.net> <ln4nyjf6l1.fsf@nuthaus.mib.org> <9hk5vgF62fU12@mid.individual.net> <eea6ca6f-f72f-4736-b9df-087932cbe79f@er6g2000vbb.googlegroups.com>

Show all headers | View raw


Pasquale Frega <zemir_fp@libero.it> writes:
>                                                                  The
> ";" at the end is intend simply as "end" and i use it simply to
> improve reading (as well as in Pascal, you might to write always ";").
> No other i intend.

A semicolon at the end of a #include directive is not merely useless,
it's wrong.  The compiler I use issues a warning and then ignores
it, but other compilers might reject the compilation altogether.

Semicolons in C are not merely decorative.  They're part of the
language syntax, and you need to understand where to use them and
where not to use them.

(The same is true in Pascal, by the way.)

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

fscan: about it Pasquale Frega <zemir_fp@libero.it> - 2011-11-04 15:41 -0700
  Re: fscan: about it Ian Collins <ian-news@hotmail.com> - 2011-11-05 11:54 +1300
    Re: fscan: about it Keith Thompson <kst-u@mib.org> - 2011-11-04 23:04 -0700
      Re: fscan: about it Ian Collins <ian-news@hotmail.com> - 2011-11-05 20:12 +1300
        Re: fscan: about it Pasquale Frega <zemir_fp@libero.it> - 2011-11-05 04:47 -0700
          Re: fscan: about it James Kuyper <jameskuyper@verizon.net> - 2011-11-05 08:58 -0400
          Re: fscan: about it Keith Thompson <kst-u@mib.org> - 2011-11-05 13:28 -0700
  Re: fscan: about it Nick Keighley <nick_keighley_nospam@hotmail.com> - 2011-11-04 16:00 -0700
  Re: fscan: about it John Gordon <gordon@panix.com> - 2011-11-04 23:57 +0000

csiph-web