Saturday, October 29, 2016

Digest for comp.lang.c++@googlegroups.com - 19 updates in 7 topics

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 28 06:23PM -0700

Watch the new series "The Encounter" on PureFlix:
 
Series: http://www.pureflix.com/series?=The+Encounter
 
Episode 1: http://www.pureflix.com/videos/787629635622/watch
Episode 2: http://www.pureflix.com/videos/787800643719/watch
 
Take a break from high drama shows, and see the contrast in peace.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 28 06:53PM -0700

You can watch it on Xbox One. Use the Edge browser and navigate
to the main page:
 
http://www.pureflix.com
 
Start your free trial, or log in. See the original 2010 movie and
some other good ones:
 
The Encounter (2010 Movie)
Amazing Love
The End of the Harvest
God of Wonders
KJB The Book that Changed the World
The Book of Daniel
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 29 02:12PM -0700

In Jesus, you'll find forgiveness for what you've done, peace for
your soul, a new calm in your life, comfort in the storm, and
the security of knowing where you'll go when you die.
 
Going to church doesn't save you. Only Jesus can save you.
But by going to church you learn about Jesus, about spiritual
things, about prayer, the real nature of why people behave
the way they do, and how to pray for them to fight their true
enemies, and how to recognize it is the people who are your
goal, and that the real enemy has them, even though it seems
they are acting within their own nature, that enemy opposes
atop them, influencing them toward their harmful actions.
 
Jesus will give you new life to be able to understand all of
this, and to lead you in service to Him in this world.
 
It starts by coming to Him and asking Him to forgive you of
your sin. This can be done anywhere, but it's often done at
a church. Asking forgiveness doesn't cleanse you, but the
true sincerity of your heart in asking is known to God, and all
who truly ask forgiveness for real are saved.
 
He will then do the rest in your life, but you must also do
your part. By seeking the truth in all things, He guides you.
 
Go to church. Ask questions. And when you feel conviction
in your heart and you're ready, then ask forgiveness from Jesus
and receive eternal life.
 
I look forward to hearing your testimony, and seeing you in
Heaven.
 
Best regards,
Rick C. Hodgin
gazelle@shell.xmission.com (Kenny McCormack): Oct 29 11:05PM

In article <8a009933-061f-4831-b5da-1b280276a13d@googlegroups.com>,
>In Jesus, you'll find forgiveness for what you've done, peace for
>your soul, a new calm in your life, comfort in the storm, and
>the security of knowing where you'll go when you die.
 
Creepy Freakazoid.
 
>goal, and that the real enemy has them, even though it seems
>they are acting within their own nature, that enemy opposes
>atop them, influencing them toward their harmful actions.
 
Beyond hope.
 
>Jesus will give you new life to be able to understand all of
>this, and to lead you in service to Him in this world.
 
That does not compute.
 
>a church. Asking forgiveness doesn't cleanse you, but the
>true sincerity of your heart in asking is known to God, and all
>who truly ask forgiveness for real are saved.
 
Somebody needs to get back on their meds...
 
>He will then do the rest in your life, but you must also do
>your part. By seeking the truth in all things, He guides you.
 
Make America Great Again.
 
>Go to church. Ask questions. And when you feel conviction
>in your heart and you're ready, then ask forgiveness from Jesus
>and receive eternal life.
 
Goofball.
 
>I look forward to hearing your testimony, and seeing you in
>Heaven.
 
Loonball.
 
>Best regards,
>Rick C. Hodgin
 
Off Topic.
 
 
--
"Only a genius could lose a billion dollars running a casino."
"You know what they say: the house always loses."
"When life gives you lemons, don't pay taxes."
"Grab 'em by the p***y!"
ram@zedat.fu-berlin.de (Stefan Ram): Oct 29 09:59PM

C++ says:
 
»If during the evaluation of an expression, the result
is not mathematically defined or not in the range of
representable values for its type, the behavior is
undefined.«, C++ 2016, 5p4 and
 
»If the second operand of / or % is zero the behavior is
undefined.«, C++ 2016, 5.6p4.
 
Does it say anywhere that a division by zero /is/ allowed
(is not undefined behavior) in floating-point divisions?
ram@zedat.fu-berlin.de (Stefan Ram): Oct 29 10:46PM

>Does it say anywhere that a division by zero /is/ allowed
>(is not undefined behavior) in floating-point divisions?
 
In practice, it seems to be true what is written in the Web:
 
»if std::numeric_limits<T>::is_iec559 == true, which it
normally is for T = float and T = double, the behavior
is overridden by IEC 559 aka IEEE 754«,
 
however, the standard does nowhere say that it does not have
UB anymore in this case (as far as I can [not ]find it). Of
course, evaluating to "Inf" is subsumed by UB, but when the
programmer has no guarantee for that result, it is not worth
that much.
"Chris M. Thomasson" <invalid@invalid.invalid>: Oct 29 03:15PM -0700

On 10/28/2016 2:28 PM, Jerry Stuckle wrote:
 
>> :^)
 
> Again having absolutely nothing to do with electrical charges. But it
> seems trying to change the topic is a favorite pastime of yours.
 
Well, you can create an image resembling a dipole... But, so what, wrt
changing topic, yes, I do suffer from that problem!
 
Sorry.
"Chris M. Thomasson" <invalid@invalid.invalid>: Oct 29 03:15PM -0700

On 10/28/2016 2:27 PM, Jerry Stuckle wrote:
 
>> ;^)
 
> Which has absolutely nothing to do with electrical charges. But once
> again you try to change the subject.
 
Sorry.
"Chris M. Thomasson" <invalid@invalid.invalid>: Oct 29 03:17PM -0700

On 10/28/2016 2:28 PM, Jerry Stuckle wrote:
 
>> :^)
 
> Again having absolutely nothing to do with electrical charges. But it
> seems trying to change the topic is a favorite pastime of yours.
 
FWIW, Hummm.. The flow of gravity wrt mass points, seems to flow in
opposite directions wrt the flow of electrical charges. The arrows show
flow direction.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Oct 29 11:01PM +0100

On 29/10/2016 22:59, Stefan Ram wrote:
> undefined.«, C++ 2016, 5.6p4.
 
> Does it say anywhere that a division by zero /is/ allowed
> (is not undefined behavior) in floating-point divisions?
 
Division by zero is undefined in C++ and undefined in mathematics so not
much more needs to be said really.
 
/Flibble
Juha Nieminen <nospam@thanks.invalid>: Oct 29 05:27AM

> So it appears he has in mind some rigid GUI frameworks where one cannot
> add their own virtual functions in correct place. In this situation
> dynamic_cast appears in principle as a way to emulate virtual functions.
 
How exactly would you make a less "rigid" GUI framework where you can
add new virtual functions to existing classes of the framework?
 
C++ doesn't offer a syntax to add new functions to an existing class,
without modifying the source code of that class (which requires
recompiling said class because it eg. changes its vtable.) It wouldn't
even be able to offer such syntax because of that requirement. (If the
implementation of the class is in a precompiled object/library, there's
no way to "recompile" it with your added virtual functions.)
 
In some other languages (such as Objective-C) it is actually possible
to add new methods to a class, even if you don't have access to its
source code (and all you have is a precompiled object/library file).
But the mechanisms by which this done is rather different than in C++.
 
--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Paavo Helde <myfirstname@osa.pri.ee>: Oct 29 09:56AM +0300

On 29.10.2016 8:27, Juha Nieminen wrote:
>> dynamic_cast appears in principle as a way to emulate virtual functions.
 
> How exactly would you make a less "rigid" GUI framework where you can
> add new virtual functions to existing classes of the framework?
 
I imagine this could be done via templates. CRTP?
Dombo <dombo@disposable.invalid>: Oct 29 12:30PM +0200

Op 28-Oct-16 om 23:54 schreef Richard:
> that everything is derived from CObject and we have a large
> monolithic framework. ATL also dates from the 90s but uses a
> different philosophy for class hierarchies.
 
It is not just different philosophy but also constraints they had to
deal with at the time. MFC is from the early nineties when the Microsoft
C++ compiler supported little more than C with classes (no templates, no
exceptions, no standard library), and the framework was still targeting
16-bit Windows running on 386 processors. ATL is from the late nineties
when the C++ dialect understood by the Microsoft compiler of that era
had much more in common with what we would consider C++ today.
 
As far as everything being derived from a common "object" class; this is
not unique to MFC, you see it also in Python, Java, C#...etc, where the
"object" class is roughly the equivalent of a void*.
 
> be the best vehicle for reuse. Inheritance for reuse is way overdone
> in any language supporting inheritance: JavaScript, Java, C#, C++,
> etc.
 
Having a common base class for all classes is partially motivated by the
limitations of these languages. For example Java and C# do not support
templates and originally did not support generics (a sort of a dumbed
down variation of templates). So for example to have reusable container
classes it helps to have everything derived from a single base class.
 
 
> If we don't stop to consider the design philosophy of the frameworks
> we're using or the design principles involved when we write code, we
> aren't working smarter, we're just working harder.
 
The question is what were the motivations for a framework to do things
in a certain way, and if they do still apply. In case of MFC many of its
design choices can be explained if you look at what they had to work
with at the time (a very limited subset of the C++ language as we know
it today, targeting slow hardware), however most of the choices made
back then no longer make sense today. It is disappointing to see that
today the most popular C++ GUI frameworks (Qt, WxWidgets) still clearly
have their roots in the nineties.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Oct 29 12:30PM +0100

On 29/10/2016 11:30, Dombo wrote:
> back then no longer make sense today. It is disappointing to see that
> today the most popular C++ GUI frameworks (Qt, WxWidgets) still clearly
> have their roots in the nineties.
 
Have you actually looked at WxWidgets? It is basically a rehash of MFC.
Avoid.
 
/Flibble
Dombo <dombo@disposable.invalid>: Oct 29 01:46PM +0200

Op 29-Oct-16 om 13:30 schreef Mr Flibble:
>> have their roots in the nineties.
 
> Have you actually looked at WxWidgets? It is basically a rehash of MFC.
> Avoid.
 
I have, hence my comment. The only advantage I see WxWidgets has
compared to MFC is that it cross-platform, other that that it appears to
suck just as badly as MFC.
JiiPee <no@notvalid.com>: Oct 29 05:56PM +0100

On 28/10/2016 20:42, Paavo Helde wrote:
 
> For example, there is CFrameWnd::GetActiveView() which returns the
> CView* pointer to the
 
nice to see others also use MFC... I am not the onlly one.... from 1996 :)
Paavo Helde <myfirstname@osa.pri.ee>: Oct 30 12:27AM +0300

On 29.10.2016 19:56, JiiPee wrote:
 
>> For example, there is CFrameWnd::GetActiveView() which returns the
>> CView* pointer to the
 
> nice to see others also use MFC... I am not the onlly one.... from 1996 :)
 
s/use/succumb/ ;-)
"Chris M. Thomasson" <invalid@invalid.invalid>: Oct 28 08:00PM -0700

On 10/28/2016 9:17 AM, red floyd wrote:
 
>> Keep in mind, IBM lawyers might be bigger than yours?
 
>> Yikes! Shudder....
 
> As the late, unlamented SCO (as opposed to Santa Cruz) learned....
 
No SHI%! Man... Joe Seigh, former IBM guru, knows a lot about that mess.
 
I just want to be able to use a Proxy Collector, with out getting my as%
and ball% sued at the same damn time!
 
;^O
Lynn McGuire <lynnmcguire5@gmail.com>: Oct 28 09:16PM -0500

"Modern C++ Features – User-Defined Literals"
http://arne-mertz.de/2016/10/modern-c-features-user-defined-literals/
 
"User-defined literals are a convenient feature added in C++11."
 
"C++ always had a number of built-in ways to write literals: Pieces of source code that have a specific type and value. They are part
of the basic building blocks of the language:"
 
Interesting.
 
Lynn
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: