home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17553 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.7 KB  |  41 lines

  1. Organization: Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!<UNAUTHENTICATED>+
  3. Newsgroups: comp.sys.amiga.programmer
  4. Message-ID: <wfAbJp_00hsB8sKGkb@cs.cmu.edu>
  5. Date: Fri, 18 Dec 1992 20:05:57 -0500 
  6. From: Michael Witbrock <mjw+@cs.cmu.edu>
  7. Subject: OK SAS 2 users 0
  8. In-Reply-To: <BzGJM3.IB8@unx.sas.com>
  9. References: <S37732V.92Dec11104414@lk-hp-12.hut.fi> <Bz3nvr.82D@unx.sas.com> <8f=bT9K00hsBMrjYoD@cs.cmu.edu> <MfAFgcS00hsBMfL35d@cs.cmu.edu>
  10.     <BzGJM3.IB8@unx.sas.com>
  11. Distribution: comp
  12. Lines: 27
  13.  
  14. Excerpts from netnews.comp.sys.amiga.programmer: 18-Dec-92 Re: alleged
  15. Bug in SAS/C V6.. Doug Walker@twix.unx.sas (1903)
  16.  
  17.  
  18. > Reread your K&R quote about the ~ operator:  "The default integer promotions 
  19. > will be performed" or some such statement is in there.  The default integer 
  20. > promotions are:
  21.  
  22. >    char           -> int
  23. >    unsigned char  -> int
  24. >    short          -> int
  25.    unsigned short -> int
  26.  
  27. Oh.... I didn't follow the pointers in K&R's barely tractable prose that
  28. far, since, fortunately, *I* don't work for a compiler company :-)
  29.  
  30. So, now that SAS has proven beyond a shadow of a question that 
  31.  
  32. x= ~0; 
  33. is wrong if sizeof(x)<sizeof(int)   .... could someone please tell the
  34. author of gadtoolsbox so that he can fix the code generator (in fact,
  35. could someone let him test it thoroughly on SAS C, since it seems to be
  36. fiercely pedantic, and therefore *A GOOD THING*).
  37.  
  38. Michael (who doubts that being told by SAS/C that your ~0 is too long is
  39. as galling as being told (with evident contempt in its ... voice ) by a
  40. CRAY-YMP  that "your program apears to be a scalar code".
  41.