From: Akinori MUSHA Date: 2008-05-29T23:52:18+09:00 Subject: Re: Ruby 1.8.7-preview4 has been released --pgp-sign-Multipart_Thu_May_29_23:52:28_2008-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Wed, 28 May 2008 06:04:56 +0900, Suraj N. Kurapati wrote: > On May 25, 8:47��pm, "Akinori MUSHA" wrote: > > The new version of Ruby includes many bug fixes, lots of feature > > enhancements and some performance improvements since 1.8.6 while > > maintaining stability and backward compatibility with the previous > > release to a high degree, although there are ongoing efforts that need > > to be done toward adopting RubySpec. >=20 > Is the BasicObject class (from Ruby 1.9) planned to be back-ported to > Ruby 1.8.x? I'm afraid it is a bit too radical to change class hierarchy (or topology, rather) in the middle of 1.8. It would break certain kinds of development tools and runtime environment (IDE/RAD tools, Squeak-like environment, etc.). > Also, will OpenStruct derive from BasicObject? So that we no longer > need to manually undef type and id to use those properties in our open > structs? >=20 > require 'ostruct' >=20 > class OpenStruct > undef type if respond_to? :type # deprecated in Ruby 1.8; removed in = 1.9 > undef id if respond_to? :id # same thing > end It would be better to undefine methods with common names individually. Losing object_id, class, dup, freeze, taint, etc. is overkill I would think. --=20 Akinori MUSHA / http://akinori.org/ --pgp-sign-Multipart_Thu_May_29_23:52:28_2008-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkg+wywACgkQkgvvx5/Z4e7+hgCglWyyVk7yyrELIuT9YBr3QWJi 9nMAoIpe5GWOjAL+yo6twvPZt7npZXk6 =c4HS -----END PGP SIGNATURE----- --pgp-sign-Multipart_Thu_May_29_23:52:28_2008-1--