Menu

#2 ObjectMust op_equality inconsistent

open
None
7
2006-08-05
2006-08-05
No

This should fail:
specify MyObj(14).Must == MyObj(41)
however it doesn't.

The EqualityMust class does not overload the
op_Equality operator. So the default "==" is used -
returning false in the above case due to the
different object references.

Most likely solution (until generics come to Boo) is
to make the "specify" macro convert "Must =="
to "Must.Equal(...)".

Discussion


Log in to post a comment.

MongoDB Logo MongoDB