sleyzerzon / soar

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

Soar has no numeric equality operator #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Description From Sam Wintermute 2008-09-10 12:31:18 (-) [reply]
Soar has numeric tests for >,<,<=,>=, but not plain equality. This is
apparently because that should be handled by just matching values, but that
does not work when one number is internally an integer and the other is
internally a float. So, Soar can detect that 1 <= 1.0 and 1 >= 1.0, but 1 
!=
1.0 as detected by matching.

There should be a operator for equality across ints and floats, or the 
matcher
should do implicit conversions, since these types are hidden from the user, 
and
for symmetry with the rest of the numeric tests. If this isn't done, the 
manual
should be updated to note this when the comparison operators are discussed.

Original issue reported on code.google.com by voigtjr@gmail.com on 23 Jul 2009 at 5:05

GoogleCodeExporter commented 8 years ago

Original comment by voigtjr@gmail.com on 23 Jul 2009 at 5:29

GoogleCodeExporter commented 8 years ago

Original comment by voigtjr@gmail.com on 23 Feb 2010 at 7:44