home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / std / cplus / 1792 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.std.c++
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: "long long" and C++
  5. Message-ID: <1992Dec15.182228.23669@taumet.com>
  6. Organization: TauMetric Corporation
  7. References: <Bz9M1x.8vp@fig.citib.com>
  8. Date: Tue, 15 Dec 1992 18:22:28 GMT
  9. Lines: 35
  10.  
  11. gjb@fig.citib.com (Greg Brail) writes:
  12.  
  13. >The most recent Sun ANSI C compiler (Sparc Works 2.0.1) supports a 64-bit
  14. >integer type called "long long". Since this type is only available with
  15. >the compiler in "strict ANSI" mode, I suppose it is part of the proposed
  16. >ANSI C standard. Is this true?
  17.  
  18. There is an official ANSI C Standard, and has been since 1989.
  19.  
  20. The locution "long long" violates a constraint in section 3.5.2 of the
  21. ANSI Standard, and must be diagnosed as an error by a conforming
  22. implementation.  If the "long long" extension is available only in
  23. "strict ANSI" mode, they got it backwards.  I would expect such an
  24. extension to be available only when "strict" mode is disabled.
  25.  
  26. >But more importantly, are there any existing proposals to add "long long"
  27. >to the C++ standard? Such a data type would be quite useful. Are there
  28. >any existing C++ compilers that support, or plan to support this type?
  29.  
  30. The next C standard will probably support an integer type longer than
  31. type long.  The C++ Committee has no proposals that I know of for
  32. adding such a type.  When it is added to C, it will certainly be
  33. added to C++.  If the ANSI C numerical extensions group decides on a
  34. longer integer type and it looks likely to be included in C, I would
  35. expect the C++ Committee to adopt it.  It is thus possible that C++
  36. will have it officially before C, if only due to timing.
  37.  
  38. Whether the longer type will be called "long long" or something else is
  39. anyone's guess.
  40.  
  41. In the mean time, a number of compilers support this type, such as
  42. Sun C, as you noted.
  43. -- 
  44.  
  45. Steve Clamage, TauMetric Corp, steve@taumet.com
  46.