#pragma

Walter Murray walter at hpclwjm.HP.COM
Wed Jan 18 04:52:16 AEST 1989


Steve Summit writes:

> I believe that #pragmas may have been exhaustively discussed in
> this group a year or so ago when I wasn't following it.

I'm in the same boat.  Maybe it's time for someone to post a summary/update
on the #pragma question.

I have two questions, both of which were probably already addressed.

1.  A #pragma causes an implementation to behave in an implementation-defined
    manner.  Could that include, for example, following unsigned-preserving
    promotion rules, or must the behavior still be ANSI?

2.  A strictly conforming program shall not produce output dependent on
    any implementation-defined behavior.  Does it follow that a strictly
    conforming program shall not use a #pragma?

Walter Murray
----------



More information about the Comp.std.c mailing list