Disclaimer: I'm the person who "accused" OP of vampirism. I said in a reply to his defensive comment: "To me, this looks more like vampirism from my answer..." (someone deleted the comment)
What happened is hard to tell from the edit history as all the first edits were so close they were merged into one, making it look like his original answer was already complete.
Now that this is being discussed in meta and that I called him out on it, he's edited every sentences took from my answer to be in his own words and removed some blatant copy-paste. I did finally upvote his, though it leaves a sour taste in my mouth.
Despite this situation,
- I did not downvoted OP.
- I did not discredited his additional edit (quotes from the specs).
- I did not flagged his answer.
- I did not made a meta post about it.
- I did not put his gigantic edit into mine to make both equivalent answer.
What I mean by vampirism is the behavior of including relevant parts word for word of another answer to feed from the early upvotes.
What happened
OP made an almost identical answer minutes after mine which was believable being quite simple at first. It's something that happens often when all the first answers appears in the first minute or two.
And as I edited critical information into mine, seconds later they were word for word edited into his. Then, when mine was complete enough for the asker, OP added a little more which looks like he just tried to steal the accept from the asker.
The asker asked me for clarification, which I added as a comment, then an edit into my answer. These were also edited in OP answer. Then the asker said something like (the comments were all removed):
Thanks for your time and answer, but as Andrew have gone above and beyond, I accepted his.
Which would be fine if it was a real improvement, but the gigantic edit which encompassed all my other edits is just quotes from the specifications. The relevant is word for word from my answer.
Some examples
03:36, I wrote:
And when you try b1 = !b2 = true;
, the equivalent makes no sense:
03:38, He then wrote:
When you try to do this: ...snip code... that makes absolutely no sense
03:42, I wrote:
This is because the !
takes precedence on the =
assignment operator.
04:02, He then wrote:
This is because !
takes precedence† over =
Now crediting mine per request. Now completely removed any references to precedence.
03:38, Someone included in my answer:
You can make it work as you expect by adding parentheses:
b1 = !(b2 = true);
He then wrote (this edit looks like it was merged in the initial answer edit but was definetly after the answer was posted, and definetely after mine as I saw it appeared as a single edit):
You can combat this by doing:
b2 = !(b1 = true);
From my point of view, this has already been discussed, see An elegant solution for “answer-stealing” edits.