This should not be committed unless you also override hash.
It is required that whenever you override ==, you must override
hash such that things that compare equal have an equal hash.
On Jan 4, 2006, at 12:52 PM, Till Bovermann wrote:
Hey all,
could someone please checkin
+ Color {
== {|that|
^(that.respondsTo(#[\red, \green, \blue])
and: {(this.red == that.red)
and: {this.green == that.green}
and: {this.blue == that.blue}
})
}
}
to Color?
thanx in advance
Till
_
may I ask for an sc dev account?
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev