perl11/potion

change numcmp for eq and neq

rurban opened this issue · 0 comments

See #76

with eq and neq accept all types. (strings, types, ...)
only if both dbl, compare the dbl values, else just compare the atom ptr.

to compare values use the equal method instead.
i.e. the following change: do not convert int to double for int == dbl (0 == 0.0 => false)
ditto use equal for Bytes, not EQ (==). EQ just compares the ptr, not the content