Re: novice: small annoyance

From: Chris \( Val \) (chrisval_at_bigpond.com.au)
Date: 12/18/04


Date: Sat, 18 Dec 2004 12:18:38 +1100


"Mike Wahler" <mkwahler@mkwahler.net> wrote in message
news:CpLwd.2240$9j5.2043@newsread3.news.pas.earthlink.net...
|
| "Chris ( Val )" <chrisval@bigpond.com.au> wrote in message
| news:32hdl5F3ln5g3U1@individual.net...
| >
| > "Alwyn" <alwyn@blueyonder.co.uk> wrote in message
| > news:pan.2004.12.18.00.48.59.541001@blueyonder.co.uk...
| > | On Sat, 18 Dec 2004 11:27:38 +1100, Chris ( Val ) wrote:
| > | >
| > | > I would prefer that the programmer had control over what is and what
| > | > is not included, given that it would be easy enough for compilers to
| > | > diagnose what header is missing, should it (rarely :-)) occur.
| > |
| > | We can do a lot better than that these days. Get rid of the
| preprocessor.
| > | Headers are compiled and indexed. No more need for '#include'. When you
| > | use something it doesn't already know about, the compiler looks for it
| and
| > | tries to bring it in.
| >
| > My suggestion was in opposition to:
| >
| > "The alternative is to provide hundreds of headers and expect the
| > programmer to include dozens of them for even a simple program"
| >
| > ...written by Francis.
| >
| > Your suggestion is of course an ideal one, if it could be
| > implemented into the language proper without too much headache.
|
| But imo headers don't belong as part of the language proper.
| They declare library entities.

To be honest, I didn't really think about it too much, because
I am admittedly fully unaware of what the ramifications of this
approach might be - that's why I said "if it could be...".

I take your point though :-)

| While not 'perfect', I find the existing state of affairs
| concerning standard headers to be quite usable.

So do I - It's just that I think the 'C' rules are better,
in that there is no ambiguity about what is or needs to be
included.

Cheers.
Chris Val



Relevant Pages

  • Re: novice: small annoyance
    ... > programmer to include dozens of them for even a simple program" ... > Your suggestion is of course an ideal one, ... But imo headers don't belong as part of the language proper. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: novice: small annoyance
    ... given that it would be easy enough for compilers to ... "The alternative is to provide hundreds of headers and expect the ... programmer to include dozens of them for even a simple program" ... Your suggestion is of course an ideal one, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Odd behaviur...
    ... Basically today I had two sets of header files - one set which ... recursively #included from headers, ... declare const structures recursively - the DDK C compiler complains ... >left wondering why a programmer capable of producing such code would ...
    (comp.lang.pascal.delphi.misc)
  • Re: Showing unique values of a list
    ... suggestion, but it is way to computer intensive if you have a large ... files twice. ... he suggested that one should set up a data view webpart which shows the ... category headers and one showing the category headers with the details ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Name a list in Excel 2003?
    ... If you have any range selected, then the top left cell is used as a suggestion ... Roger Govier wrote: ... data|list and said my list had headers. ... Dave Peterson ...
    (microsoft.public.excel.misc)