Re: Equal to Anything

2006-10-04 Thread Duncan Booth
"Simon Brunning" <[EMAIL PROTECTED]> wrote: > I'm fairly sure that I know what is going on here - the left hand side > object is getting first stab at the equality test, and understandably, > it's saying "Nah". But is there anything that I can do about it? > Not in general, no. If you could, and

Equal to Anything

2006-10-04 Thread Simon Brunning
For the purposes of a little test utility that we use, I need an object that evaluates as equal to anything. (I realise that this is a bad idea in some ways, breaking the equals/hashcode invariant and so forth, but I'm hoping that I can get away with it in this case.) It seems a simple enough