🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1248

Re: "long long" and C++

#1248
From: Steve Clamage
Date: Tue, 15 Dec 1992 18:22
35 lines
1952 bytes
gjb@fig.citib.com (Greg Brail) writes:

>The most recent Sun ANSI C compiler (Sparc Works 2.0.1) supports a 64-bit
>integer type called "long long". Since this type is only available with
>the compiler in "strict ANSI" mode, I suppose it is part of the proposed
>ANSI C standard. Is this true?

There is an official ANSI C Standard, and has been since 1989.

The locution "long long" violates a constraint in section 3.5.2 of the
ANSI Standard, and must be diagnosed as an error by a conforming
implementation.  If the "long long" extension is available only in
"strict ANSI" mode, they got it backwards.  I would expect such an
extension to be available only when "strict" mode is disabled.

>But more importantly, are there any existing proposals to add "long long"
>to the C++ standard? Such a data type would be quite useful. Are there
>any existing C++ compilers that support, or plan to support this type?

The next C standard will probably support an integer type longer than
type long.  The C++ Committee has no proposals that I know of for
adding such a type.  When it is added to C, it will certainly be
added to C++.  If the ANSI C numerical extensions group decides on a
longer integer type and it looks likely to be included in C, I would
expect the C++ Committee to adopt it.  It is thus possible that C++
will have it officially before C, if only due to timing.

Whether the longer type will be called "long long" or something else is
anyone's guess.

In the mean time, a number of compilers support this type, such as
Sun C, as you noted.
-- 

Steve Clamage, TauMetric Corp, steve@taumet.com
Technical Details
Message-ID: <1992Dec15.182228.23669@taumet.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
References: <Bz9M1x.8vp@fig.citib.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c++
Path: arc1-ca.pugleaf.net!sparky!uunet!taumet!steve
From: steve@taumet.com (Steve Clamage)
Subject: Re: "long long" and C++
Message-ID: <1992Dec15.182228.23669@taumet.com>
Organization: TauMetric Corporation
References: <Bz9M1x.8vp@fig.citib.com>
Date: Tue, 15 Dec 1992 18:22:28 GMT
Lines: 35