------ art_5144_29950803.1202184191203 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > def some > call_other(@xpos,@ypos) > end > > def more > call_other(@other,@another) > end > This worked: class Test attr_reader :xpos def initialize @xpos end def some p "before call: #{@xpos}" #notice the colon c :@xpos p "after call: #{@xpos}" end def call_other(var) max self.instance_variable_set(var, rand(max)) end end begin t est.new t.some end wyz@local ~ $ ruby test.rb "before call: 0" "after call: 7" wyz@local ~ $ ruby test.rb "before call: 0" "after call: 2" Warning: I'm not feeling well and the NyQuil is kicking in... :/ -- Andrew Stone ------ art_5144_29950803.1202184191203--