From: "Mauricio Fernández" Date: 2002-11-18T00:06:05+09:00 Subject: Re: sorting partially ordered objects in 1.7.3 fails On Sun, Nov 17, 2002 at 11:51:32PM +0900, Mauricio Fern�ndez wrote: > On Sun, Nov 17, 2002 at 09:50:50PM +0900, ts wrote: > > >>>>> "J" == Joel VanderWerf writes: > > > > J> Is this an intended change? > > > > Probably this is this > > > > Wed Jan 23 02:00:14 2002 Yukihiro Matsumoto > > > > * object.c (rb_mod_cmp): should raise ArgumentError if > > inheritance/inclusion relation between two classes/modules is > > not defined. [new] > > But the relation is indeed defined in Joel's example, and the exception is not > the same... > I'm stupid. batsman@tux-chan:/tmp$ cat t.rb class C; end class C1 < C; end #class C2 < C; end p [C, C1].sort batsman@tux-chan:/tmp$ ruby1.7 t.rb [C1, C] batsman@tux-chan:/tmp$ -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Linux ext2fs has been stable for a long time, now it's time to break it -- Linuxkongre� '95 in Berlin