Nice comments, but never attribute to malice that which can be adequately explained by incompetence :)
T
torp
@torp
0
Reputation
3
Posts
23
Profile views
0
Followers
0
Following
Best posts made by torp
This user hasn't posted anything yet.
Latest posts made by torp
-
RE: Schrodinger's NULL?
-
RE: Schrodinger's NULL?
@Minos said:
@bannedfromcoding said:
@derula said:
@torp said:
Schrodinger's NULL?
It's Schrödinger. Other than that, nice code snippet.
Maybe it was Schrödinger's umlaut?You've coined a potentially useful term here. I'm going to use "Schrödinger's umlaut" to describe words that may or may not have diacriticals, depending on laziness or keyboard layout.
In my defense, i'm neither English nor German and i don't have the keyboard set up even for my own language's diacriticals ;)
-
Schrodinger's NULL?
After lurking on tdwtf for quite a while, i've finally had the pleasure or misfortune to join a project that will give me reasons to post on this forum for the following few months.
Anonymized code snippet:
if (count >= (*some_ptr)[some_index]) { if (some_ptr == NULL) return (true); ... rest of function ... }
For the curious, some_ptr is a global pointer to a STL map object.