|
Dobby does Paris
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Now keep in Mind that '_IsMale' is a 'int?'...
switch _IsMale
case null:
return "unknown";
case 0:
return "Female";
case 1:
return "Male";
Thank goodness there is comments to help understand what is happening and what the values are for.
Only thing the comments does not explain...
"unsexed != virgin"?
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
pff. waste of space. a bool? would have been sufficient
|
|
|
|
|
On the contrary, the int? was very forward thinking!
Who knows what other option we could have: hermaphrodite, transsexual, transgender male to female, transgender female to male, mutant (with a new kind of chromosome), so many possibilities!!!
|
|
|
|
|
You forgot Bob.
Soren Madsen
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
It's Benzoate Ostylezene Bicarbonate, sir!
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
Super Lloyd wrote: was very forward thinking!
Star Trek distance forward thinking indeed!
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
There's an ISO standard[^] for it.
0 = not known,
1 = male,
2 = female,
9 = not applicable.
Be excellent to each other. And... PARTY ON, DUDES!
Abraham Lincoln
|
|
|
|
|
The document to define this is 24 pages long.
speramus in juniperus
|
|
|
|
|
Nagy Vilmos wrote: 24 pages long.
Sounds vaguely like T&Cs
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
mmm.
Can I make up 3 - 8 then?
AND YES. BOB is 3. Nuff said
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
And someone will still complain, because they want to be listed as "60% male, 60% female" or some other absurdity.
|
|
|
|
|
harold aptroot wrote: ...listed as "60% male, 60% female" or...
So you think that why they used int and not bool? So that there are 2,147,483,647 possibilities of male and female (and unknown according to above comments)
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
Nah, nah, that's the beauty of the 'int?' could accommodate 4Gb of variety! :P
|
|
|
|
|
It might not be enough. Go straight for 'long?'.
|
|
|
|
|
harold aptroot wrote: Go straight for 'long?'.
Why are you discriminating? Go for decimal[^]
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
I'm not the captain. Call me Ismale.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Nice!
A haben't thought of that.
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|
|
I shall call you Sir Ismale.
At least then someone would have called you "Sir," without adding "you're making a scene"...
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
Good one. Where's the "Like" button?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
As a thanks I shall pass you your very own bread knife[^]
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
Is not that obvious. For instance I don't see the default section.
By the way, captain is right (and you are wrong) on null->"unknown" , 'virgins' definitely have sex...
Veni, vidi, vici.
|
|
|
|
|
CPallini wrote: I don't see the default section.
Finally someone notices it.
To think in one piece of code so many wrong can be
here is your prize
Loading signature...
. . . Please Wait . . .
|
|
|
|
|
Most living organisms are neither male nor female, what is the problem?
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur.
|
|
|
|
|
Dalek Dave wrote: Most living organisms are neither male nor female,
nor breathing, nor seeing, nor understanding, nor smiling, nor free, nor alive, nor dead, nor transexual, nor bisexual, nor asexual, nor here, nor included in the result, nor able work a computer... oooh look puppy!
Loading signature...
. . . Please Wait . . .
|
|
|
|