#pragma does only half the job (was Re: Pragma and noalias)

T. William Wells bill at proxftl.UUCP
Wed Jul 20 20:43:35 AEST 1988


In article <1988Jul10.201104.27556 at utzoo.uucp> henry at utzoo.uucp (Henry Spencer) writes:
> >... implementation defined means that you can change only a
> >very limited subset of things, i.e., those things labeled as
> >implementation defined in the standard...
>
> Please justify this with specific citations from X3J11.

3.8.6 says:

"[a pragma] causes the implementation to behave in an
implementation-defined manner...."

My reading of this says that a pragma changes the implementation,
not (directly) the interpretation of the program.  However, the
changed implementation must also be conforming.  This means that
it can only change those aspects of the standard which are
subject to choice, i.e., those things which are implementation
defined (or one of the other indeterminate characteristics).

Anyway, given that reasonable people can disagree on the
interpretation of this, it should be changed.



More information about the Comp.lang.c mailing list