Jonathan Paisley
jp-ww****@dcs*****
Thu Jun 8 06:14:37 JST 2006
> > Apparently rb_class2name() calls rb_class_real() on the class and > this picks the right class, rb_mod_name() does not do that. Also, > rb_class2name() returns us a C string that we don't have to > convert, and according to the code it does more logic if classname > () returns nil, so I believe the patch is good (I applied it in the > branch). Replacement code looks reasonable. The reason for rb_mod_name failing is that it determines the name by recursively traversing the Constants defined on Object and below in order to find the class name. I don't think those dynamic subclasses every get assigned to a constant (e.g., OSX::NSArray), so it fails.