in reply to undef == 0?
It actually makes perfect sense to me, in that undef and 0 both evaluate to "false" and "false" equals "false." I've programmed Fortran for many years (my first editor was an IBM-029 card punch 8=)); Fortran actually has a dedicated logical operators, .EQV. and .NEQV. to compare Boolean values. Part of the reason for this that some older Fortrans would do something like "x == y" (actually, X .EQ. Y) without any kind of cast: the compiler would just generate the instructions to compare the actual bit sequences. And Fortran's concept of "true" vs "false" can be a trifle confusing. Of course, one could now digress into why -0 != 0, but one shouldn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: undef == 0?
by stu42j (Sexton) on Oct 25, 2007 at 05:09 UTC | |
by codeacrobat (Chaplain) on Oct 25, 2007 at 06:21 UTC | |
by stu42j (Sexton) on Oct 25, 2007 at 19:37 UTC | |
by swampyankee (Parson) on Oct 26, 2007 at 00:08 UTC | |
by mrpeabody (Friar) on Oct 25, 2007 at 16:12 UTC |