From: Ged Byrne Date: 2003-08-18T22:22:23+09:00 Subject: Re: @@newimpl and @newimpl in Net Thanks all for your patience. So this allows old and new implementations to be run side by side. I see now that setImplVersion is called in HTTP.new. Again, thanks. --- ts wrote: > >>>>> "G" == =?iso-8859-1?q?Ged=20Byrne?= > writes: > > G> Could anybody explain how this is working? > > This is this case > > require 'net/http' > a = Net::HTTP.start('www.ruby-lang.org', 80) # > new version > Net::HTTP.version_1_1 > b = Net::HTTP.start('www.ruby-lang.org', 80) # > old version > > > Net::HTTP.version_1_1 has modified @@newimpl, but > the instance variable > @newimpl for `a' was not modified > > `a' will work with the new implementation > `b' will work with the old implementation > > > > Guy Decoux > > ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://uk.messenger.yahoo.com/