From: ts Date: 2002-01-12T01:20:04+09:00 Subject: Re: class name reported differently in different contexts >>>>> "C" == Chr Rippel writes: C> From the point of view of someone who is pretty much clueless about C> the inner workings of the interpreter it seems that classid and classpath C> are normally hidden variables used in computing the value of Class#to_s C> Class#inspect (short of overriding the ladder two methods) computed at C> most once during the lifetime of a class. Normally this happens when C> the interpreter for the first time sees the lines yes, C> The previous half-baked solution of setting classid but not classpath C> seems like the worst of all possible choices to me. The previous half-baked solution is based on the fact that an user class exist when it's defined as a constant. Before this the class has only a classid (I don't want to speak about "native" classes of ruby :-))) Don't forget : if I've a classpath, I can retrieve the constant actually. If I have only a classid, I can't retrieve the constant. With this patch, classid is useless and even for "native" classes it can exist only classpath. Guy Decoux