Path: utzoo!utgpu!watmath!watdragon!akwright From: akwright@watdragon.waterloo.edu (Andrew K. Wright) Newsgroups: comp.lang.c++ Subject: Re: Managing C++ Libraries: Dependencie Message-ID: <9661@watdragon.waterloo.edu> Date: 14 Nov 88 13:45:25 GMT References: <5078@thorin.cs.unc.edu> <124300001@inmet> Reply-To: akwright@watdragon.waterloo.edu (Andrew K. Wright) Organization: U. of Waterloo, Ontario Lines: 19 In article <124300001@inmet> stt@inmet writes: > >A simple language extension would be: > >#include_once "classname.h" The Software Development Group of the University of Waterloo uses #pragma idempotent to mark an include file as having idempotent semantics (that is, including it more than once has no effect). using pragma to do this has the advantage that your program will still compile on a C compiler which does not recognize it; the file will then be included twice, which should not hurt, just slow down your compiles. -- Andrew K. Wright akwright@watmath.waterloo.edu CS Dept., University of Waterloo.