From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: Question about #pragma Date: Tue, 19 Aug 1997 08:53:19 -0700 Organization: Alcyone Systems Lines: 21 Message-ID: <33F9C16F.70C9802@alcyone.com> References: <33F9553A DOT 5DE8 AT pentek DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Charles Krug wrote: > #pragma is "standard". I am fairly certain that it is also ANSI. Yes, it is. It's one of those interestings that is required by the standard, but is left completely implementation-dependent (that's what it's for). That is, #pragma is perfectly standard, but if you ever use it to accomplish something, you're by definition making your program platform-specific. Which is complicated by the issue that if an unrecognized #pragma is discovered on another compiler, the standard dictates that it be ignored. Which means you might naively not even know what the platform-specific behavior you were requesting is not happening -- particularly if you're porting someone else's (poorly documented) code. -- Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com Alcyone Systems / web / http://www.alcyone.com/max/ San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W \ "Love is not love which alters / when it alteration finds." / William Shakespeare, _Sonnets_, 116