🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2483

Re: Header file inclusion and multiple directories

#2483
From: Fergus Henderson
Date: Thu, 09 Nov 1995 07:39
32 lines
1951 bytes
John Max Skaller <maxtal@suphys.physics.su.oz.au> writes:

>matt@cyclops5.berkeley.edu (Matt Austern) wrote:
>>
>>So my challenge: can anyone think of an acceptable replacement for
>>"The named source file is searched for in an implementation-defined
>>manner" that would provide a bit more of a guarantee of reasonable
>>behavior?
>
>Yes. GET RID OF #include ALTOGETHER. <grin>
>
>The way to do this is to have a system
>where you can "use" modules in the source code.
>
>To _find_ the modules, an implementation specific
>control file, menu, or whatever is used: I'd
>start with a file of pairs (module name, filename)
>plus some defaults and autosearch instructions.

I agree that separating module names from file names is a good idea,
but -- as recent discussion on comp.lang.ada indicates -- if you leave
the mapping as implementation specific, different implementations will
adopt different conventions, and so while you will have just simplified
the problem, you won't have solved it.

--
Fergus Henderson             	WWW: http://www.cs.mu.oz.au/~fjh
fjh@cs.mu.oz.au              	PGP: finger fjh@128.250.37.3
---
[ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy
  is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID: <9531318.1026@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <MATT.95Nov2152444@cyclops5.berkeley.edu> <47qldv$f37@oznet03.ozemail.com.au>

Show Full Headers
Complete Article Headers
Approved: fjh@cs.mu.oz.au
Date: 09 Nov 95 07:39:46 GMT
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Message-ID: <9531318.1026@mulga.cs.mu.OZ.AU>
Newsgroups: comp.std.c++
Organization: Computer Science, University of Melbourne, Australia
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back
References: <MATT.95Nov2152444@cyclops5.berkeley.edu> <47qldv$f37@oznet03.ozemail.com.au>
Subject: Re: Header file inclusion and multiple directories
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBFAgUBMKGwVuEDnX0m9pzZAQECpAGAk828dhiIGgTxb2JlAjMAzElGAhPCtXxO
 kni+Z662DHORAGoTrODA2A/zjJm6mLc1
 =ocO7