From: Joel VanderWerf Date: 2004-12-15T17:59:44+09:00 Subject: Re: no-argument sort() Robert Klemme wrote: > Btw, I'm a bit surprised that > > if (TYPE(a) == T_STRING && TYPE(b) == T_STRING) { > return rb_str_cmp(a, b); > } > > does indeed cover subclasses as well. I guess, I'll have to dig into the > source for further education... :-) IIRC, subclasses of builtin types keep the same basic structure in memory, including the TYPE field.