[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: BasicObject & OpenStruct in Ruby 1.8.7-preview3

Suraj Kurapati

5/20/2008 11:29:00 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

Is the BasicObject class (from Ruby 1.9) included in Ruby 1.8.7?

Also, does OpenStruct derive from BasicObject in Ruby 1.8.7? So that we
no longer have to undef type and id to use those properties in our
OpenStructs?

require 'ostruct'

class OpenStruct
undef id # deprecated in Ruby 1.8; removed in 1.9
undef type # same thing
end

Thanks for your consideration.
--
Posted via http://www.ruby-....