Project

General

Profile

Backport #3195

BasicObject in 1.8.8

Added by trans (Thomas Sawyer) about 9 years ago. Updated 7 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:29782]

Description

=begin
It would be helpful if BasicObject could be back-ported to Ruby for v1.8.8. But not as the underlying superclass or all objects --I understand that's a 1.9+ feature, but just as a separate class we can use use for custom classes. For instance I have an OpenStruct-like class that could use it. Right now I use an imitation BlankSlate, but it is not very robust and I run into limitations with testing b/c of of #undef_method.
=end

History

#1

Updated by matz (Yukihiro Matsumoto) about 9 years ago

=begin
Hi,

In message "Re: [ruby-core:29782] [Backport #3195] BasicObject in 1.8.8"
on Sat, 24 Apr 2010 23:40:36 +0900, Thomas Sawyer redmine@ruby-lang.org writes:

|It would be helpful if BasicObject could be back-ported to Ruby for v1.8.8. But not as the underlying superclass or all objects --I understand that's a 1.9+ feature, but just as a separate class we can use use for custom classes. For instance I have an OpenStruct-like class that could use it. Right now I use an imitation BlankSlate, but it is not very robust and I run into limitations with testing b/c of of #undef_method.

I see very little (virtually no) chance for the idea, that even
enhance the gap between 1.8 and 1.9.

                        matz.

=end

#2

Updated by trans (Thomas Sawyer) about 9 years ago

=begin
Oh? I thought it would help improve the bridge between 1.8.6 and 1.9.x --making it easier to transition.
=end

#3

Updated by jeremyevans0 (Jeremy Evans) 7 days ago

  • Status changed from Open to Closed
  • Description updated (diff)
  • Project changed from Ruby 1.8 to Backport187

Also available in: Atom PDF