Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!dogie.macc.wisc.edu!gatech!ncsuvx!ecemwl!jnh From: jnh@ecemwl.ncsu.edu (Joseph N. Hall) Newsgroups: comp.lang.c++ Subject: Re: #pragma once (was Re: A solution to the multiple inclusion Message-ID: <4359@ncsuvx.ncsu.edu> Date: 30 Oct 89 15:13:49 GMT References: <14240@well.UUCP> <2082@plx.UUCP> <1989Oct27.163755.12976@paris.ics.uci.edu> <23464@cup.portal.com> Sender: news@ncsuvx.ncsu.edu Reply-To: jnh@ecemwl.UUCP (Joseph N. Hall) Organization: North Carolina State University Lines: 24 In article <23464@cup.portal.com> John_-_Nagle@cup.portal.com writes: > It's worth considering that this new feature be added to C++ only, >not C, which is more firmly standardized. In C++, dependencies tend to >be more complex than in C, and a larger percentage of the content of the >program tends to reside in include files in C++, since most class definitions >are in include files. > [how about...] > #require FILENAME > >as the one-time inclusion mechanism for C++. I definitely support the use of a "#require" mechanism. Personally, I'd like to see some sort of explicit support for a precompiled "interface library" from which necessary declarations, macros, etc., can be extracted quickly and efficiently. I find it infuriating that one is penalized for keeping source files to a reasonable length (say, 1000 lines) when headers grow to lengths of 2000-10,000 lines and take several times longer to compile than the actual definitions in the source file ... v v sssss|| joseph hall || 4116 Brewster Drive v v s s || jnh@ecemwl.ncsu.edu (Internet) || Raleigh, NC 27606 v sss || SP Software/CAD Tool Developer, Mac Hacker and Keyboardist -----------|| Disclaimer: NCSU may not share my views, but is welcome to.