newbiettn / ambienttalk

Automatically exported from code.google.com/p/ambienttalk
0 stars 0 forks source link

(In)equality tests malfunction on numeric values #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compare a numeric value to a non-numeric value (e.g. 5 != nil)

What is the expected output? What do you see instead?
Expected output is <true>, while in the example, nil is implicitly coerced to a 
numeric value (to 
match the ATNumeric argument type expected by the equality and inequality tests 
in the 
ATNumeric interface). Subsequently, a selector not found exception is thrown 
since nil does not 
implement the necessary methods used in the double dispatch to compare numbers.

Please use labels and text to provide additional information.
A fix for this problem has been made in the reactive branch, rev. 1418

Original issue reported on code.google.com by smost...@gmail.com on 22 Nov 2008 at 8:45

GoogleCodeExporter commented 9 years ago
Fixed in revision 2685.

Original comment by smost...@gmail.com on 25 Jan 2011 at 2:58