From: Hacksaw Date: 2003-12-17T06:51:22+09:00 Subject: Re: Copying methods from one class to another > On Tuesday 16 December 2003 04:33 pm, Hacksaw wrote: > > Sorry to step into the middle of a conversation, but what does this mean: > > > > class C < C; > > class C > .. > end > > class B < C > ... > end > > C = B > > No difference, except now we have two names for the same thing B and C. We > have just redefined the constant to point to a subclass of its old self. Not > really all that tricky, although it does seem like it with the short > notation. > > > Make more sense now? No. Why would B and C be equal? B is a subclass of C. Specifically, methods and variable defined in B are not reflected in C. The only way that they are equal is that an inherited method in B should do the same thing as in C. Same with inherited variables. -- Silence is not silent. http://www.hacksaw.org -- http://www.privatecircus.com -- KB1FVD