[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] [commit] Color-==



In theory you should also check for class equivalence, just in case
someone adds a subclass of Color.

But that's probably overly picky :)

+ Color {
       == {|that|
               ^(this.class == that.class) and: {
		(that.respondsTo(#[\red, \green, \blue, \alpha])
                       and: {(this.red  == that.red)
                       and: {this.green == that.green}
                       and: {this.blue  == that.blue}
                       and: {this.alpha  == that.alpha}
               }
               })
       }
}

hjh

--
James Harkins /// dewdrop world
jamshark70@xxxxxxxxxxxxxxxxx
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman