Forum: IronRuby Code Review: NewSingletons3

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb51033949ffccd982ae32c9f890f25a?d=identicon&s=25 Tomas Matousek (Guest)
on 2009-06-07 06:14
(Received via mailing list)
Attachment: NewSingletons3.diff (100 KB)
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]
attribute.
  *  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
class.
  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).

Tomas
F983f0c990cba2fe743ef62a975ec99c?d=identicon&s=25 Curt Hagenlocher (Guest)
on 2009-06-08 05:59
(Received via mailing list)
Looks good.
This topic is locked and can not be replied to.