-----Messaggio Originale----- Da: "Viktor Szakáts" <[email protected]>
A: "Harbour Project Main Developer List." <[email protected]>
Data invio: mercoledì 11 febbraio 2009 19.24
Oggetto: Re: [Harbour] Errors


> Not exactly. As I said, a HEADER doesn't necessarily have to exist as a
> file.

Sorry, but speaking of ANSI C, I'm not sure what you mean by that.

Ehm... I was thinking about something like

#include <iostream>

of C++. iostream doesn't have to be a file (and normally isn't).

Here's the standard:
http://std.dkuug.dk/JTC1/SC22/WG14/www/docs/n843.htm

--- [snippet from: "6.10.2  Source file inclusion" ]
Semantics

      [#2] A preprocessing directive of the form

        # include <h-char-sequence> new-line

      searches a sequence of implementation-defined places  for  a
      header identified uniquely by the specified sequence between
      the < and > delimiters, and causes the replacement  of  that
      directive  by  the  entire  contents of the header.  How the
      places  are  specified   or   the   header   identified   is
      implementation-defined.

      [#3] A preprocessing directive of the form

        # include "q-char-sequence" new-line

      causes  the  replacement  of  that  directive  by the entire
      contents of the source  file  identified  by  the  specified
      sequence between the " delimiters.  The named source file is
      searched for in an implementation-defined manner.   If  this
      search  is  not  supported,  or  if  the  search  fails, the
      directive is reprocessed as if it read
---

Difference between <> and "" is implementation dependent,
and it doesn't even mention "file". There we have it ;)

I don't agree. It explicitly mention the difference between a header (#2) and a source file (#3). It seems to imply that a header is a more abstract entity. I think that windows.h is a poor file. :-)

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page: http://www.emagsoftware.it/emgmusic
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to