On Thu, Jan 23, 2003 at 01:55:01AM +0900, ts wrote:
> >>>>> "M" == Mauricio =?iso-8859-1?Q?Fern=E1ndez?= <Mauricio> writes:
> 
> M> It works because B < A but B.class is _not_ derived from A.class :) so
> 
>  What do you want to say with this ?
> 
> pigeon% cat b.rb
> #!/usr/bin/ruby
> class A; end
> class B < A; end;
> p (B < A)
> p ((class << B; self; end) < (class << A; self; end))
> pigeon% 
>
>
> pigeon% b.rb
> true
> true
> pigeon% 

I meant that 
batsman@tux-chan:/tmp$ cat c.rb
class A; end
class B < A; end;
p (B < A)
p (B.class < A.class)
batsman@tux-chan:/tmp$ ruby c.rb
true
false

as both are of class Class. If there was an automatic relationship
between the classes of the classes, my example wouldn't work.

It's always interesting to see that there is indeed a inheritance
relation between singletons...

PS: does this mean that my 'instance counting' code is correct?

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

Look, I'm about to buy me a double barreled sawed off shotgun and show
Linus what I think about backspace and delete not working.
	-- some anonymous .signature