OneFootsTheSame
Smack-Fu Master, in training
wb wrote:
And for the truely anal, in Java booleans are a primitive type, are either "true" or "false", and only booleans can be compared. So the statement "false == 0" is incorrect syntactically and also because a specific VM could use 0 for true and still correctly implement the language.
For the anal retentive, this is how true and false are properly represented
false == 0
true = !false
And for the truely anal, in Java booleans are a primitive type, are either "true" or "false", and only booleans can be compared. So the statement "false == 0" is incorrect syntactically and also because a specific VM could use 0 for true and still correctly implement the language.