From: Doug Edmunds Date: 2001-03-31T05:40:12+09:00 Subject: [ruby-talk:13363] f.call (x) revisited Back in Oct 2000, Davide Marchignoli inquired: >Why the two following (admittedly contrived) computations give >different results ? > a = 1 ; x = 1 ; f = proc {|a| a += 1} > f.call(x) > f.call(a) > a # results in 2 << a = 1 ; x = 1 ; f = proc {|a| a += 1} > f.call(a) > f.call(x) > a # results in 3 <<