Topic: Fundemental type annoyance in standard.


Author: Pete Becker <petebecker@acm.org>
Date: 2000/10/10
Raw View
James Kuyper wrote:
>
> Pete Becker wrote:
> >
> > James Kuyper wrote:
> > >
> > > Ron Natalie wrote:
> > > ...
> > > > The C standard however reads (5.2.5, TYPES):
> > >
> > > Section 6.2.5, in my copy.
> > >
> > > >         There are five standard signed integer types ...
> > >
> >
> > This is a C++ newsgroup, and C++ has four standard signed integer types.
> > The C standard recently added long long, so it has five standard signed
> > integer types.
>
> Ron was very specific about the fact that he was referring to the C
> standard.

And I was very specific about the fact that I was contrasting the words
in the two standards.

--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Contributing Editor, C/C++ Users Journal (http://www.cuj.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]






Author: Pete Becker <petebecker@acm.org>
Date: 2000/10/09
Raw View
James Kuyper wrote:
>
> Ron Natalie wrote:
> ...
> > The C standard however reads (5.2.5, TYPES):
>
> Section 6.2.5, in my copy.
>
> >         There are five standard signed integer types ...
>

This is a C++ newsgroup, and C++ has four standard signed integer types.
The C standard recently added long long, so it has five standard signed
integer types.

--
Pete Becker
Dinkumware, Ltd. (http://www.dinkumware.com)
Contributing Editor, C/C++ Users Journal (http://www.cuj.com)

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]






Author: James Kuyper <kuyper@wizard.net>
Date: 2000/10/09
Raw View
Pete Becker wrote:
>
> James Kuyper wrote:
> >
> > Ron Natalie wrote:
> > ...
> > > The C standard however reads (5.2.5, TYPES):
> >
> > Section 6.2.5, in my copy.
> >
> > >         There are five standard signed integer types ...
> >
>
> This is a C++ newsgroup, and C++ has four standard signed integer types.
> The C standard recently added long long, so it has five standard signed
> integer types.

Ron was very specific about the fact that he was referring to the C
standard. If you trace back the thread, you'll see that it was in a
context entirely relevant to this newsgroup: a comparison of the two
standards.

The question, incidentally, was not about difference in the number of
standard signed integer types. It was about whether there's a difference
between the standards with regards to an implementation's freedom to
support additional integer types beyond the ones required by the
standard. The C standard explicitly allows this; the C++ standard is
less clear.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html                ]
[ Note that the FAQ URL has changed!  Please update your bookmarks.     ]






Author: wmm@fastdial.net
Date: 2000/09/25
Raw View
In article <39CF99A0.3B57D4C6@sensor.com>,
  Ron Natalie <ron@sensor.com> wrote:
>
>
> Marco Manfredini wrote:
> >
> > Does "There are four X" imply "there are exactly four x" or "there
are at
> > least four X"? If the english grammer (Ich Deutsch) allows both
> > interpretations, then the actual meaning must be determined from
the usage
> > of X, which leads to no contradiction here.
>
> Standard-ese implies (the standard isn't really english either) that
there
> are exactly four.

Yes, but extensions are explicitly allowed (1.4p8) as long as
they don't break conforming programs and cause a diagnostic
(which can be suppressed everywhere except --pedantic mode).
I think "long long" fits pretty well under that allowance.

--
William M. Miller, wmm@fastdial.net
Vignette Corporation (www.vignette.com)


Sent via Deja.com http://www.deja.com/
Before you buy.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: James Kuyper <kuyper@wizard.net>
Date: Tue, 26 Sep 2000 00:44:12 GMT
Raw View
Ron Natalie wrote:
...
> The C standard however reads (5.2.5, TYPES):

Section 6.2.5, in my copy.

>         There are five standard signed integer types ...

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: "Marco Manfredini" <marquise2000@gmx.net>
Date: 2000/09/27
Raw View

"James Kuyper" <kuyper@wizard.net> wrote in message
news:39CFF594.5FC8A5F6@wizard.net...
> Ron Natalie wrote:
> ...
> > The C standard however reads (5.2.5, TYPES):
>
> Section 6.2.5, in my copy.
>
> >         There are five standard signed integer types ...
>
> ---

This is like the "Spanish Inquisition Sketch" by the Monty Pythons.

Marco

"We have 4 signed integer types: signed char, short, int, long, long
long..damn we have 5, 5 signed integer types. Among these are signed char,
short, ..."

Oh no, I was MODERATED!





======================================= MODERATOR'S COMMENT:
 I didn't expect that.  Did you expect your post to be approved?

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: Ron Natalie <ron@sensor.com>
Date: 2000/09/25
Raw View
In the C++ standard the second paragraph of 3.9.1, Fundemental Types read=
s:

 There are four signed integer types: =93signed char=94, =93short int=94,=
 =93int=94
 and =93long int.=94

Which would imply that the implementation can not define additional integ=
ral types.
The C standard however reads (5.2.5, TYPES):

 There are five standard signed integer types ...

and goes on to state:

 There may also be implementation-defined extended signed integer
        types.  The standard and extended signed integer types are collec=
tively
        called signed integer types.

It would be nice if the C++ standard picked up this interpretation (as we=
ll as the
long long type).

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: "Marco Manfredini" <marquise2000@gmx.net>
Date: 2000/09/25
Raw View


"Ron Natalie" <ron@sensor.com> wrote in message
news:39CF720F.DCF32C4@sensor.com...
>In the C++ standard the second paragraph of 3.9.1, Fundemental Types rea=
ds:

> There are four signed integer types: =93signed char=94, =93short int=94=
, =93int=94
> and =93long int.=94

Does "There are four X" imply "there are exactly four x" or "there are at
least four X"? If the english grammer (Ich Deutsch) allows both
interpretations, then the actual meaning must be determined from the usag=
e
of X, which leads to no contradiction here.

This definitions should be fixed to one of the above meanings, just as a
matter of style and beauty...

--
-- Marco

dig @138.195.138.195 goret.org. axfr | grep '^c..\..*A' | sort | cut -b5-=
36
| perl -e 'while(<>){print pack("H32",$_)}' | gzip -d



---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: Ron Natalie <ron@sensor.com>
Date: 2000/09/25
Raw View

Marco Manfredini wrote:
>
> Does "There are four X" imply "there are exactly four x" or "there are at
> least four X"? If the english grammer (Ich Deutsch) allows both
> interpretations, then the actual meaning must be determined from the usage
> of X, which leads to no contradiction here.

Standard-ese implies (the standard isn't really english either) that there
are exactly four.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]