CompuServe Messages

Lattice #pragma

    18-Jan-90 04:49:00
Sb: #84931-Lattice #pragma
Fm: John Draper 76703,4322
To: Mike Roth/Lattice 76566,1137
Yes, I understand that about #pragma. The only thing that's a little dangerous is that since pragmas are implementation defined, there is no guarantee that a pragma of the same name will not mean something completely different on another compiler, be it for the same machine or not. Now it isn't a big chance to take, unless by some fluke there happens to be name similarities among different compilers, but the chance is there. My feeling on it is that it should be used as sparingly as possible, and that anyone using a pragma, should probably encase it in an 'ifdef' specifying the compiler used.