Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #71410
| From | Keith Thompson <Keith.S.Thompson+u@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: C++ variable names |
| Date | 2020-01-16 00:15 -0800 |
| Organization | None to speak of |
| Message-ID | <878sm7hl6a.fsf@nosuchdomain.example.com> (permalink) |
| References | <qvohup$gar$1@dont-email.me> <qvoro0$j6$1@news.albasani.net> <qvotqb$d3l$3@dont-email.me> <qvou3m$5et$1@news.albasani.net> <qvovva$mdn$1@dont-email.me> |
T <T@invalid.invalid> writes:
[...]
> This got it?
>
> C C++
> float_t std::float_t
> double_t std::double_t
float_t and double_t are fairly obscure types defined in <math.h>
in C, and in <cmath> or <math.h> in C++. float_t is at least as
wide as float, and might be wider and faster; similarly for double_t.
(For example, float_t might be defined as double if double operations
are faster than float operations.) See the C standard (I think
you have N1570) section 7.12. I don't know that there would be
any reason to refer to them in Raku.
The predefined floating-point types in both C and C++ are float,
double, and long double.
I'm really not sure what this whole discussion is about. The types
in the standard library have names defined by the standard library
as specified in the language standard. You just use those names.
It doesn't make sense to talk about changing them.
If you weren't aware, most of the C standard library headers
are incorporated into the C++ standard library. Each <foo.h>
C header is available in C++ as <cfoo>, with the declarations in
the std:: namespace. With very few exceptions, they're the same.
Any decent C++ reference should explain all this.
No offense, but I get the feeling that you have some fundamental
misconception that led you to think that, for example, referring to
int32_t as int32 might make some kind of sense.
Hopefully this means you won't have to post a new question about
size_t and ptrdiff_t, since the answers will be exactly the same.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
[Note updated email address]
Working, but not speaking, for Philips Healthcare
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
C++ variable names T <T@invalid.invalid> - 2020-01-15 18:31 -0800
Re: C++ variable names Daniel <danielaparker@gmail.com> - 2020-01-15 18:42 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 18:46 -0800
Re: C++ variable names Daniel <danielaparker@gmail.com> - 2020-01-15 21:30 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 21:52 -0800
Re: C++ variable names Louis Krupp <lkrupp@nospam.pssw.com.invalid> - 2020-01-15 23:44 -0700
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 22:59 -0800
Re: C++ variable names Bo Persson <bo@bo-persson.se> - 2020-01-16 08:44 +0100
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 23:48 -0800
Re: C++ variable names David Brown <david.brown@hesbynett.no> - 2020-01-16 10:08 +0100
Re: C++ variable names Louis Krupp <lkrupp@nospam.pssw.com.invalid> - 2020-01-16 00:43 -0700
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 23:51 -0800
Re: C++ variable names Louis Krupp <lkrupp@nospam.pssw.com.invalid> - 2020-01-16 01:39 -0700
Re: C++ variable names T <T@invalid.invalid> - 2020-01-16 14:01 -0800
Re: C++ variable names Lynn McGuire <lynnmcguire5@gmail.com> - 2020-01-16 15:48 -0600
Re: C++ variable names Öö Tiib <ootiib@hot.ee> - 2020-01-16 14:11 -0800
Re: C++ variable names Lynn McGuire <lynnmcguire5@gmail.com> - 2020-01-17 18:52 -0600
Re: C++ variable names Manfred <noname@add.invalid> - 2020-01-18 16:22 +0100
Re: C++ variable names Öö Tiib <ootiib@hot.ee> - 2020-01-18 10:41 -0800
Re: C++ variable names Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-01-21 05:31 -0800
Re: C++ variable names David Brown <david.brown@hesbynett.no> - 2020-01-16 23:32 +0100
Re: C++ variable names legalize+jeeves@mail.xmission.com (Richard) - 2020-01-19 19:13 +0000
Re: C++ variable names red floyd <no.spam@its.invalid> - 2020-01-15 18:45 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 18:47 -0800
Re: C++ variable names Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-01-15 21:51 -0800
Re: C++ variable names red floyd <no.spam@its.invalid> - 2020-01-15 22:44 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 23:00 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 19:40 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 19:58 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 20:12 -0800
Re: C++ variable names James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-01-15 23:18 -0500
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 20:20 -0800
Re: C++ variable names James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-01-16 12:06 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-16 14:02 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 20:31 -0800
Re: C++ variable names David Brown <david.brown@hesbynett.no> - 2020-01-16 11:09 +0100
Re: C++ variable names Ben Bacarisse <ben.usenet@bsb.me.uk> - 2020-01-16 03:52 +0000
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 19:59 -0800
Re: C++ variable names Bo Persson <bo@bo-persson.se> - 2020-01-16 06:33 +0100
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 21:53 -0800
Re: C++ variable names Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-16 06:18 +0100
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 21:54 -0800
Re: C++ variable names Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-16 06:59 +0100
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 22:31 -0800
Re: C++ variable names Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-01-16 00:15 -0800
Re: C++ variable names Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-16 11:25 +0100
Re: C++ variable names Mister2U@honorific.org - 2020-01-16 11:47 +0000
Re: C++ variable names Bonita Montero <Bonita.Montero@gmail.com> - 2020-01-16 13:31 +0100
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-16 15:51 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-16 15:51 -0800
Re: C++ variable names Manfred <invalid@add.invalid> - 2020-01-17 01:31 +0100
Re: C++ variable names Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-01-15 21:48 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 21:55 -0800
Re: C++ variable names Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2020-01-16 00:01 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 22:28 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 22:31 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 23:16 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 23:26 -0800
Re: C++ variable names "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> - 2020-01-15 23:34 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-15 23:53 -0800
Re: C++ variable names Louis Krupp <lkrupp@nospam.pssw.com.invalid> - 2020-01-16 03:04 -0700
C++ variable names James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-01-16 11:51 -0800
Re: C++ variable names T <T@invalid.invalid> - 2020-01-16 13:58 -0800
csiph-web