From: Nate Smith Date: 2004-09-17T02:28:47+09:00 Subject: Changing outside variables inside a proc Hello all, Is there any way to change an outside-scoped object inside a proc? Such as: a = "Foo" b = "bar" proc = Proc.new { |val1, val2| val1, val2 = "boo", "baz" } proc.call( a, b ) # a and b are still "Foo" and "bar" I don't believe this is possible.. but would be very nice for creating a collect! method for a user-defined object. Thanks Nate