On Mon, Sep 15, 2003 at 02:25:02PM -0400, Martin Nilsson (saturator) @ Pike (-) developers forum wrote:
other langauges. "", (<>), ({}) and ([]) are not false, and so should not 0.0 be either.
Since there is no "boolean" type in Pike, and since float 0.0 is (numerically) equivalent of integer 0, and since many languages interpret 0 (any type) as "false", it is _logical_ to implement it in Pike as well.
Or does this one of the points which should make Pike "different"?
Many C/Perl/etc programmers would find this difference a bit inconvenient (at least), so migration to Pike would be a bit difficult.
And last - as I quoted from the tutorial already:
"The value zero (0) is considered to be false, and everything else is true. If the value is true, the statement is executed."
If float 0.0 is _not_ zero, then what it is? Either the tutorial is incorrect or something else is wrong...
Regards, /Al