Tuesday, January 23, 2018

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

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 23 10:51PM

"Owners of dogs will have noticed that, if you provide them with food
and water and shelter and affection, they will think you are God.
Whereas owners of cats are compelled to realize that, if you provide
them with food and water and affection, they draw the conclusion that
they are God." -- Christopher Hitchens
 
--
 
Thank you,
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 23 09:59PM

On 23/01/2018 19:41, Rick C. Hodgin wrote:
> the confines of this limited existence what you believe may be true.
 
> But there is more. And until you realize that, you will remain on the
> wholly wrong path.
 
One hopes that through a process of osmosis it will eventually sink in
that I don't give a fuck what you think. In the meantime, fuck off you
obtuse cunt.
 
/Flibble
 
--
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates
a world that is so full of injustice and pain. That's what I would say."
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 23 10:29PM

On 23/01/2018 21:59, Mr Flibble wrote:
 
> One hopes that through a process of osmosis it will eventually sink in
> that I don't give a fuck what you think.  In the meantime, fuck off you
> obtuse cunt.
 
Or in slightly more polite terms:
 
Rick, your belief in God is no stronger than my atheism; I have always
been an atheist and I will always be an atheist and NOTHING you say will
change that. Given this information why do you persist like a demented
Chatty Cathy doll?
 
/Flibble
 
--
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates
a world that is so full of injustice and pain. That's what I would say."
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 23 02:40PM -0800

On Tuesday, January 23, 2018 at 5:29:35 PM UTC-5, Mr Flibble wrote:
> been an atheist and I will always be an atheist and NOTHING you say will
> change that. Given this information why do you persist like a demented
> Chatty Cathy doll?
 
I thought the same thing, Leigh, and I was right. Nobody could change
my mind. Period. In my flesh, I was convinced I was right. But, I
did not have any evidence to back it up. Just my beliefs. So, I was
willing to read the Bible to see what it said. In so doing, I sought
the truth and God gave me a new spirit so that my mind was no longer
the only source of input into my existence. It was from within that
new input that I was drawn to Jesus. Not my mind.
 
That is the drawing from within that brings us to the place where we're
able to place value on Jesus Christ, because in our flesh we will NEVER
place value on Him.
 
It requires an act of God to come to God, Leigh:
 
https://www.biblegateway.com/passage/?search=John+6%3A44&version=KJV
 
44 No man can come to me, except the Father which hath sent me
draw him: and I will raise him up at the last day.
 
Our flesh is in sin, Leigh. It will NEVER come to Christ. It requires
a new birth: the born again spirit nature.
 
--
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Jan 23 10:44PM

On 23/01/2018 22:40, Rick C. Hodgin wrote:
>> Chatty Cathy doll?
 
> I thought the same thing, Leigh, and I was right. Nobody could change
> my mind. Period. In my flesh, I was convinced I was right. But, I
[snip;tldr]
 
Did you not read what I just said or did you just choose to ignore it? I
repeat: NOTHING YOU CAN SAY WILL CHANGE THE FACT THAT I AM AN ATHEIST.
 
Do you not understand the meaning of the words "NOTHING YOU CAN SAY"?
 
/Flibble
 
--
"Suppose it's all true, and you walk up to the pearly gates, and are
confronted by God," Bryne asked on his show The Meaning of Life. "What
will Stephen Fry say to him, her, or it?"
"I'd say, bone cancer in children? What's that about?" Fry replied.
"How dare you? How dare you create a world to which there is such misery
that is not our fault. It's not right, it's utterly, utterly evil."
"Why should I respect a capricious, mean-minded, stupid God who creates
a world that is so full of injustice and pain. That's what I would say."
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 23 02:50PM -0800

On Tuesday, January 23, 2018 at 5:45:02 PM UTC-5, Mr Flibble wrote:
> [snip;tldr]
 
> Did you not read what I just said or did you just choose to ignore it? I
> repeat: NOTHING YOU CAN SAY WILL CHANGE THE FACT THAT I AM AN ATHEIST.
 
The details of why you are RIGHT are in the "tldr" part you snipped.
 
If you have any interest in seeking the truth, then seek it. Read the
parts you snipped.
 
The details, Leigh... the enemy seeks to keep you from them for a reason.
 
--
Rick C. Hodgin
"Öö Tiib" <ootiib@hot.ee>: Jan 23 02:05PM -0800

On Tuesday, 23 January 2018 22:54:20 UTC+2, Gert-Jan de Vos wrote:
> how to detect IO errors like file not found, access violation or disk
> full. Sometimes I need to check failbit or badbit, sometimes only
> badbit and I can't remember when to choose what.
 
Just use ios::fail() to check if one of those is set and look
up actual cause from errno:
 
std::ifstream f;
f.open(fileName);
 
if (f.fail())
{
std::cout << "Error: " << strerror(errno) << '\n';
}
 
The errno is thread-local since C++11 (that added threads
into C++) so it works fine in multi-threaded app as well.
 
> Ideally I would like to get exceptions with the OS error details
> included as proposed in N2503. Unfortunately with MSVC2017
> I just get "iostream error" in the exception object.
 
Same there, e.what() tells some vague nonsense not worth reading
and errno is lot better source of information:
 
std::ifstream f;
std::ios_base::iostate exceptionMask = f.exceptions() | std::ios::failbit;
f.exceptions(exceptionMask);
 
try
{
f.open(fileName);
}
catch (std::ios_base::failure& e)
{
std::cout << "Vague whine: " << e.what() << '\n';
std::cout << "Error: " << strerror(errno) << '\n';
}
 
IOW ... TL;DR it is rare case where errno is not sufficient for
diagnosing fstream i/o issues.
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Jan 23 11:01PM +0100

On 1/23/2018 7:25 PM, Real Troll wrote:
 
> int main()
> {
>    locale mylocale("");   // get global locale
 
"" is the user's natural locale.
 
The global locale at startup is instead the C locale.
 
 
> program should be:
 
> 1,000,000
 
> NOT 1000000.
 
There's no "should" about it, as far as I know.
 
Here are two results, respectively MinGW g++ and Visual C++:
 
 
[H:\forums\clc++\031 locale]
> g++ main.cpp
 
[H:\forums\clc++\031 locale]
> a
1000000
 
[H:\forums\clc++\031 locale]
> cl main.cpp /Feb
main.cpp
 
[H:\forums\clc++\031 locale]
> b
1,000,000
 
[H:\forums\clc++\031 locale]
> _
 
 
Cheers!,
 
- Alf
Real Troll <Real.Troll@Trolls.com>: Jan 23 06:05PM -0400

On 23/01/2018 19:30, Paavo Helde wrote:
> any locale-dependent behavior. The last occasion was when I discovered
> that stricmp() appears in the profiler output, in a program which
> ought to just crunch numbers basically.
 
Which compiler did you use? I tested in Visual Studio because it is up
to date and Herb Sutter is Microsoft Evangelist!!! He is: "software
architect at Microsoft where he has led the language extensions design
of C++/CLI, C++/CX, C++ AMP, and other technologies". As you may know
Herb is the boss of ISO C++ Standard!!!!!
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Jan 23 01:51PM -0800

> I will speak more, and would organize preaching on Bible: but I am lazy and don't like to speak too much... I think this is one my error
 
> Now as now I would say of save well, old Bibles because the new traductions seems to me not so good; and read only Bible + technical ( Mathematic physic informatics) books; because other book, philosophers the first and news paper have evil thinks
 
There's a good bit of research done in the 90s and 00s by Gail Riplinger
(in English):
 
https://www.youtube.com/watch?v=tR_7tkC6ZiA
Note: She has many more similar videos recorded over time
 
She shows many examples of how the God of the Bible is being watered down
and replaced by a lesser God in the newer translations.
 
When I study the Bible, I typically use:
 
King James Bible
NIV
Amplified Bible
Young's Literal Translation
Online references for Strong's numbers in Old and New Testaments
 
By examining these multiple sources, you get a very solid understanding
of the original intent of the passage.
 
I do warn about the NIV and Amplified Bible, however. They often con-
tain translations that are notably different and even misleading. So,
stick close to the KJV, YLT, and look back to the original Hebrew and
Greek sources to see how various original language words are used
elsewhere in the Bible.
 
With study and discipline, you get a solid understanding over time.
 
--
Rick C. Hodgin
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: