Friday, September 14, 2018

Digest for comp.lang.c++@googlegroups.com - 8 updates in 5 topics

Paul <pepstein5@gmail.com>: Sep 14 12:45PM -0700

Could someone possibly explain to me the relationship between
fixed width integer types and the std namespace?
 
On my compiler, if I #include <cstdint> then
std::int8_t yy = 65; works fine but also
int8_t z = 65; also works.
 
(And yes, it gives 'A').
Does int8_t belong to the std namespace or not?
How can this designation be optional?
 
Thanks for your help.
 
Paul
bitrex <user@example.net>: Sep 14 05:35PM -0400

On 09/14/2018 03:45 PM, Paul wrote:
> How can this designation be optional?
 
> Thanks for your help.
 
> Paul
 
Well what is ur compiler? ???
 
IDK
Paul <pepstein5@gmail.com>: Sep 14 03:49PM -0700

On Friday, September 14, 2018 at 10:36:11 PM UTC+1, bitrex wrote:
 
> > Paul
> Co>
 
> Well what is ur compiler? ???
 
 
Code Blocks with C++11 enabled.
 
Paul
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Sep 15 01:09AM +0200

On 14.09.2018 21:45, Paul wrote:
> int8_t z = 65; also works.
 
> (And yes, it gives 'A').
> Does int8_t belong to the std namespace or not?
 
It Came From Outer Space.
 
Or, well, C99.
 
 
> How can this designation be optional?
 
<cstdint> guarantees to provide it in namespace `std`, and may also
provide it in the global namespace.
 
<stdint.h> guarantees to provide in the global namespace, and may also
provide it in the `std` namespace.
 
A header wrapper such as ¹<stdlib/c/stdint.hpp> that includes both
headers, guarantees that the name is in both the global namespace and
the `std` namespace. Guaranteed behavior is IMHO preferable. But if you
don't want to use such a wrapper, then including <stdint.h> is the more
practical choice: <cstdint> just adds complication, for historical
idealistic (or what I believe to be idealistic) reasons, and effectively
reduces portability, since non-qualified use of the name may compile
with the compiler used for original development, and not with others.
 
Cheers & hth.,
 
- Alf
 
Notes:
¹ <url:
https://github.com/alf-p-steinbach/Wrapped-stdlib/tree/master/source/c>
Nikki Locke <nikki@trumphurst.com>: Sep 14 10:23PM

Available C++ Libraries FAQ
 
URL: http://www.trumphurst.com/cpplibs/
 
This is a searchable list of libraries and utilities (both free
and commercial) available to C++ programmers.
 
If you know of a library which is not in the list, why not fill
in the form at http://www.trumphurst.com/cpplibs/cppsub.php
 
Maintainer: Nikki Locke - if you wish to contact me, please use the form on the website.
Lynn McGuire <lynnmcguire5@gmail.com>: Sep 14 03:33PM -0500

"My CppCon 2018 talk title and abstract" 2018-09-14 by Herb Sutter

https://herbsutter.com/2018/09/14/my-cppcon-2018-talk-title-and-abstract/
 
"Thoughts on a more powerful and simpler C++ (5 of N)"
 
"Perhaps the most important thing we can do for C++ at this point in its
evolution is to make sure we preserve its core strengths while also
directing its evolution in ways that make it simpler to use. That is my
own opinion at least, and so this talk starts with a perspective
question: What "is C++," really? The language continues to evolve and
change; as it does so, how can we be sure we're picking C++ evolutionary
improvements that not only don't lose its "C++-ic" qualities, but make
it a better C++ than ever?"
 
Lynn
queequeg@trust.no1 (Queequeg): Sep 14 10:26AM


> The satire will continue whilst your off-topic religious posts continue.
> Stop whining.
 
The only reason I saw his post was because you replied to it. Think about
it.
 
--
https://www.youtube.com/watch?v=9lSzL1DqQn0
Juha Nieminen <nospam@thanks.invalid>: Sep 14 08:02AM

> projects work with C++Builder.
 
> So no need to port my Delphi and FreePascal projects to C++, because
> they work with C++Builder.
 
Thank you for informing us. How could we ever survive without this
knowledge?
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: