Forum: IronRuby Code Review: NewSingletons3

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Tomas M. (Guest)
on 2009-06-07 08:14
(Received via mailing list)
Attachment: NewSingletons3.diff (0 Bytes)
tfpt review "/shelveset:NewSingletons3;REDMOND\tomat"

  Initial work to improve singletons.

  *  Improves reflection cache generator - it searches IronRuby.dll for
all types marked by [ReflectionCache] attribute and generates ref-cache
entries for all their methods and properties marked with [Emitted]
  *  Merges RubyModule.Subclass into RubyModule, i.e. RubyModule now
implements IRubyObject.
  *  IRubyObjects now hold on their immediate class (not nominal class)
and that reference might change once from a non-singleton to a singleton
  This change allows IRubyObject singletons (including modules and
classes when used in static method calls) to have the same rules as
non-singleton objects. The rule no longer needs to hold on such objects.
  *  Implements module freezing: methods, constants, instance and class
variables, mixins cannot be modified on a frozen module. Besides, if an
object is frozen its singleton class is (recursively) frozen as well.
  *  Fixes object freezing: instance variables cannot be modified on a
frozen object (we allowed it).

Curt H. (Guest)
on 2009-06-08 07:59
(Received via mailing list)
Looks good.
This topic is locked and can not be replied to.