Newsgroups: comp.lang.c++ Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: #pragma once (was Re: A solution to the multiple inclusion Message-ID: <1989Oct30.180126.25138@utzoo.uucp> Organization: U of Toronto Zoology References: <14240@well.UUCP> <2082@plx.UUCP> <1989Oct27.163755.12976@paris.ics.uci.edu> <23464@cup.portal.com> Date: Mon, 30 Oct 89 18:01:26 GMT In article <23464@cup.portal.com> John_-_Nagle@cup.portal.com writes: > The "#pragma once" approach is a good idea. But a pragma represents >an explicitly nonstandard approach. This should be standardized. > > Common LISP has "require", which has the right semantics for this >situation. Perhaps we could use that keyword. Better yet, why not mandate intelligent preprocessors, which recognize include files that start with "#ifndef FOO_H" and end with "#endif"? If we are going to mandate a change, why not mandate one that introduces no new keywords and no incompatibility? -- A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology megabyte of flaming. | uunet!attcan!utzoo!henry henry@zoo.toronto.edu