Topic: Are Explicitly Signed Integers OK?


Author: rahner@zuni.litc.lockheed.com (Mark Rahner)
Date: Tue, 21 Sep 93 00:34:07 GMT
Raw View
Hello everybody,

Is it legal to declare explicitly signed shorts, ints, and longs
using statements like:

    signed short ss;
    signed int   si;
    signed long  sl;

Many compilers accept such declarations without producing warning
messages, but I'm concerned that I may be asking for unnecessary
portability headaches.  As I read it, the ARM doesn't explicitly
say that this is legal.  Does this mean that it's illegal?  Did
I read it correctly?

Thanks in advance.


--
Mark V. Rahner   rahner@lmsc.lockheed.com




Author: bs@alice.att.com (Bjarne Stroustrup)
Date: 21 Sep 93 14:29:42 GMT
Raw View





Author: bs@alice.att.com (Bjarne Stroustrup)
Date: 21 Sep 93 16:20:41 GMT
Raw View

yes.




Author: grumpy@cbnewse.cb.att.com (Paul J Lucas)
Date: Wed, 22 Sep 1993 00:31:00 GMT
Raw View