=begin
Hi --
On Wed, 9 Jul 2008, Roger Pack wrote:
Issue #249 has been reported by Roger Pack.
Feature #249: wish list item: binding.set_local_variable
http://redmine.ruby-lang.org/issues/show/249
Author: Roger Pack
Status: Open
Priority: Normal
Assigned to:
Category:
Target version:
twould indeed be nice to be able to set local variables in further up scopes.
Not quite sure how this would be accomplished.
Maybe make ruby_scope have a ->prev pointer? And then force the parser to re-run, like it does in eval?
That would sort of do away with the notions of local scope, though. I
think it's important for there to be true local scope, such that
variable names can be changed and eliminated during refactoring, say,
without being coupled to other code.
David
--
Rails training from David A. Black and Ruby Power and Light:
Intro to Ruby on Rails July 21-24 Edison, NJ
Advancing With Rails August 18-21 Edison, NJ
See http://www.rubypal.com for details and updates!
=end