From: Tom Sawyer Date: 2002-07-09T04:03:10+09:00 Subject: Re: String#each Has no one else read this post? On Mon, 2002-07-08 at 05:24, Massimiliano Mirra wrote: > Imagine this... > > There is a 16compat.rb file in ruby1.8 lib directory. By requiring > it, all language features that have been changed (not added) in 1.8 > assume 1.6 behaviour. You could put a require 'compat16' in your > script, and you would be sure that, if it ran under 1.6, it will run > for you. You could even set that system-wide to be sure (e.g. `ruby' > is really a script containing `ruby -rcompat1.6') and require > 'compat18' for new projects. Most important, by doing so on the new > project, whatever change will happen in ruby2.0 you already know your > script will still run because compat18.rb in ruby2.0 will take care of > it... > > Just a thought. > > Massimiliano i'm waiting to here what others think. i am hopeful that this will be in our ruby-futures. perhaps this idea should be moved to a new thread? ~transami