Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×

Comment C/C++ operator = (Score 5, Interesting) 360

It's why placing constants on the left of the equality operator is a good idea in C/C++. The whole line then looks suspicious because its constants are on the right, and the first thing you'll think about is bugs involving operator = instead of operator ==. Unfortunately there's a lot of old code that doesn't do this, but it's easy enough for a compiler to issue warnings about operator = in if-statements.

Comment Re:Ok, but... (Score 2) 383

It stops being the Argo in toto the moment the first plank is replaced and it becomes mostly the Argo. Eventually there is no Argo, except for all the parts that have been removed, assuming they still exist. Maybe consciousness works the same way, and eventually the new you will have nothing in common with the you of the past. Perhaps it would be like knowing you were once another person, but not remembering what it was like.

Slashdot Top Deals

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (5) All right, who's the wiseguy who stuck this trigraph stuff in here?

Working...