Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!ames!sgi!ciemo@bananapc.wpd.sgi.com From: ciemo@bananapc.wpd.sgi.com (Dave Ciemiewicz) Newsgroups: comp.lang.c++ Subject: Re: "Signed" Implemented Yet? Summary: Try the -signed option to cc/CC Message-ID: <41603@sgi.sgi.com> Date: 12 Sep 89 00:12:40 GMT References: <6590193@hplsla.HP.COM> <6590195@hplsla.HP.COM> <3520@internal.Apple.COM> Sender: ciemo@bananapc.wpd.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 31 In article <3520@internal.Apple.COM>, turk@Apple.COM (Ken "Turk" Turkowski) writes: > In article <6590195@hplsla.HP.COM> jima@hplsla.HP.COM (Jim Adcock) writes: > >>Interestingly, all current C compilers on MS-DOS that I'm familiar with > >>support 'signed'. > > > >Interestingly, my recent-generation C++ compiler doesn't -- unless that's > >been fixed. Seems like a shame to have a C++ front end that doesn't understand > >"signed" when *all* the C backends do understand it. I was hoping that some > >C++ vendors might speak up about what C++ compilers support it and which don't. > >[and why not] > > Yes, and this poses severe problems on the IRIS, which has chars as unsigned > by default. There seems to be no way to get signed chars. The C compiler has a flag for defaulting to signed integers (-signed). If you have a c++ compiler from AT&T, you should be able to pass the -signed flag on the CC command line to get cc to compile your code with default signed integers. This is the case with the C++ product from Silicon Graphics which should be released in the very near future. --- Dave -- ------------------------------------------------------------------------------- Cosmo Ciemo, Silicon Valley Dude I was traipsing through the fields of my mind when I stepped in something that smelled rather ripe. -------------------------------------------------------------------------------