Friday, November 24, 2017

Digest for comp.lang.c++@googlegroups.com - 14 updates in 6 topics

Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 24 09:23PM

On 23/11/2017 20:39, Rick C. Hodgin wrote:
>> maeks a report to abuse@giganews.com, it is quite possible that the
>> attacker may lose their posting privileges.
 
> I have already done so.
 
How very Christian of you. Twit. I feel like I should report YOU for
abuse (spamming this newsgroup with off topic religious nonsense that is
effectively trolling) to Google Groups but I really can't be arsed
because I have a life.
 
And BTW I have made my posts subtly obvious that they are satirical
parodies rather than identity theft by including a header "Organisation"
field of "Rick C. Hodgin Enterprises".
 
The parodies shall continue whilst your fucking spam continues.
 
/Flibble
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 24 01:32PM -0800

On Friday, November 24, 2017 at 4:23:42 PM UTC-5, Mr Flibble wrote:
> The parodies shall continue whilst your .. spam continues.
 
So will the reports to abuse@giganews.org. Keep posting as me until you
lose your account, Leigh. I'm perfectly fine with that outcome.
 
You owe the people around you better than profanity, insults, and
mocking impersonations. Maybe after you lose your account you'll have
some time then to ponder it each time you log in to your alternate
method of accessing Usenet.
 
--
Rick C. Hodgin
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 24 10:59PM

On 24/11/2017 21:32, Rick C. Hodgin wrote:
> mocking impersonations. Maybe after you lose your account you'll have
> some time then to ponder it each time you log in to your alternate
> method of accessing Usenet.
 
You are the one breaking Usenet etiquette by committing the cardinal
Usenet sin of OFF TOPIC SPAMMING. The satire is a reaction to your
ignorant lack of consideration for what this Usenet newsgroup is: a
TECHNICAL newsgroup (not a fucking CHURCH). Fuck off and preach
elsewhere where preaching is welcome: NOBODY IS INTERESTED IN IT OR
WANTS IT HERE.
 
/Flibble
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 24 03:13PM -0800

On Friday, November 24, 2017 at 6:00:00 PM UTC-5, Mr Flibble wrote:
> > some time then to ponder it each time you log in to your alternate
> > method of accessing Usenet.
 
> You are the one breaking Usenet etiquette ...
 
I am not impersonating people. And I am acting on authority of God
who commands us to go forth and teach all nations (Matthew 28:18-20).
 
https://www.biblegateway.com/passage/?search=Matthew+28%3A18-20&version=KJV
 
You reject God, so you reject His authority, and therefore see my
actions as "spam," but if the owner of the company told you to do
something your manager told you not to, who would you listen to?
One has higher authority.
 
You'll find out soon enough the authority of Jesus over even you who
deny Him. I just pray it's sooner rather than later. It will be a
happy ending for you if it is. Unhappy otherwise.
 
-----
 
Are you a sinner, Leigh? Do you have sin?
You need a savior to escape judgment.
 
That's the whole teaching you reject right there. That's the whole
reason Jesus came to the Earth: to save your eternal soul.
 
--
Rick C. Hodgin
Melzzzzz <Melzzzzz@zzzzz.com>: Nov 24 11:19PM


>> You are the one breaking Usenet etiquette ...
 
> I am not impersonating people. And I am acting on authority of God
> who commands us to go forth and teach all nations (Matthew 28:18-20).
 
You twist what was said. That mean non Christian nations. And you are
not apostle.
 
--
press any key to continue or any other to quit...
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 24 11:21PM

On 24/11/2017 23:13, Rick C. Hodgin wrote:
> You need a savior to escape judgment.
 
> That's the whole teaching you reject right there. That's the whole
> reason Jesus came to the Earth: to save your eternal soul.
 
I didn't post that. Someone is impersonating me.
 
I get the message now: I accept that matters of faith are personal and
shouldn't be forced upon people through repetition of the same words
with minor variations. I am truly sorry for spamming this C++ newsgroup
with posts totally unrelated to C++ causing annoyance and making this
newsgroup a toxic place.
 
--
 
Thank you,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 24 09:51PM

I'll get my coat.
 
https://www.youtube.com/watch?v=DxOX4YeEUOc
 
--
 
Thank you,
Rick C. Hodgin
David Brown <david.brown@hesbynett.no>: Nov 24 01:25PM +0100

On 24/11/17 12:49, Stefan Ram wrote:
> MA = /* as above, but for the move assignment */
> DS = /* as above, but for the destructor */
 
> return make_tuple( DC, CC, CA, MC, MA, DS ); }
 
I'm not sure what your function is supposed to do here, but I can tell
you some ways to improve it:
 
1. If you have an abbreviated name that needs a comment, the you could
probably replace it with a better name without a comment.
 
2. Replace your integer values with an enumerated type.
 
3. Never return a pair or a tuple. Make it a struct - then people can
use the results sensibly (using the sensible names you are going to
provide) instead of by number.
 
4. For the benefit of the rest of the programming world, and
/especially/ for the benefit of your students, /please/ switch to a sane
coding style.
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Nov 24 04:40PM

On 24/11/2017 12:25, David Brown wrote:
> you some ways to improve it:
 
> 1. If you have an abbreviated name that needs a comment, the you could
> probably replace it with a better name without a comment.
 
+10
 
> 2. Replace your integer values with an enumerated type.
 
+1
 
 
> 3. Never return a pair or a tuple. Make it a struct - then people can
> use the results sensibly (using the sensible names you are going to
> provide) instead of by number.
 
+1 (you can use std::tie and std::forward_as_tuple if you want to take
advantage of tuple's lexicographical comparison feature)
 
> 4. For the benefit of the rest of the programming world, and
> /especially/ for the benefit of your students, /please/ switch to a sane
> coding style.
 
+1
 
All very good answers, 10/10. :)
 
/Flibble
"Öö Tiib" <ootiib@hot.ee>: Nov 23 04:07PM -0800

On Thursday, 23 November 2017 23:44:16 UTC+2, Jorgen Grahn wrote:
> > specialize standard library templates.
 
> Of course it also depends on the situation: which function you're
> implementing.
 
Yes, that is what I meant. It depends on situation what function
with what data and who is implementing. For example different people
think differently what is better: hash(a) or a.hash() ...
a.to_string() or to_string(a) ... a.clone() or clone(a) ... and so on.
 
 
> > It is sure possible, but how to?
 
> I haven't been paying attention (sorry!) but isn't this what
> std::swap() is supposed to take care of?
 
Unfortunately no. The std::swap is actually required to be sort of
"usually fine enough" implementation for types that are
move-constructive AND move-assignable and has to be equivalent to
that:
 
template <class T>
void swap (T& a, T& b)
{
T c(std::move(a)); a=std::move(b); b=std::move(c);
}
 
> Or put differently, isn't the author of T responsible for the
> performance of std::swap(T&, T&) ?
 
Each developer (or group of such) may of course agree to take
whatever responsibilities. That does not affect with what library
from what other group they may be need to start integrating their
code next week.
 
In real code I have seen more often swap(T&, T&) implemented in
namespace of T; less often std::swap(T&, T&) specialized.
However I have seen also T::swap only.
asetofsymbols@gmail.com: Nov 24 12:35AM -0800

The errors are 2
 
1) swap has to be called as
. swap(&a,&b)
Because it change the value of a and b and I have to see that
2) swap(&a,&b) has to see if a and b are valid objects analyze their variable for error a->error and b->error if someone is not zero, or a==0 or b==0 store (if possible in the other) in a and b the fail case assign a->error=1 and b->error=1 in case of fail
Juha Nieminen <nospam@thanks.invalid>: Nov 24 12:31PM

> // else std::swap(a, b);
> }
 
> It is sure possible, but how to?
 
What you are trying to do is compile-time introspection.
 
C++, at least currently, doesn't really have support for this,
but it can be achieved, to a limited extent, via a relatively
ugly SFINAE kludge. If you google "c++ introspection" you'll
find tutorials.
john.stone.44444@gmail.com: Nov 24 04:22AM -0800

W dniu środa, 22 listopada 2017 02:41:20 UTC+1 użytkownik Rick C Hodgin napisał:
> My son is gay, he will go to hell, pray for him
 
Good one i must say
ram@zedat.fu-berlin.de (Stefan Ram): Nov 24 11:49AM

Can you write a function definition and/or
extend/improve/correct the parts given below?
 
auto explain
( bool DCu /* whether a default constructor is user-provided */,
bool CCu /* whether a copy constructor is user-provided */,
bool CAu /* whether a copy assignment is user-provided */,
bool MCu /* whether a move constructur is user-provided */,
bool MAu /* whether a move assignment is user-provided */,
bool DSu /* whether a destructor is user-provided */ )
{
DC = /* 1 when a default constructor will be
implicitly-declared (or
 
2 if this happens, but is deprecated) or
 
0 when it will /not/ be implicitly-declared
(or implicitly-declared as deleted) under the
conditions described by the parameter values */
 
CC = /* as above, but for the copy constructor */
CA = /* as above, but for the copy assignment */
MC = /* as above, but for the move constructor */
MA = /* as above, but for the move assignment */
DS = /* as above, but for the destructor */
 
return make_tuple( DC, CC, CA, MC, MA, DS ); }
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: