From: Lyle Johnson Date: 2002-11-20T12:31:34+09:00 Subject: Re: Defining <=> Tim Hunter wrote: > I need to define <=> in a class. What is the appropriate thing to do when > the "other" argument is not an object in the class? For example, comparing > myObject <=> nil, which actually happens in the debugger. Should I just > send it to the superclass? If you can somehow coerce the other argument into the receiver's class, that would work. Otherwise, I think most or all of the built-in classes just raise a TypeError exception.