delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/23/03:52:28

From: Erik Max Francis <max AT alcyone DOT com>
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: <ww01-BHLJZN2260 AT netaddress DOT usa DOT net> <33F9553A DOT 5DE8 AT pentek DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019