From: rj-cole Date: 2006-03-02T07:08:37+09:00 Subject: Newby question: Is += atomic for integers? Hi, Can the following program produce counts that are wrong? class Test attr_accessor :count def initialize @count = 0 end end $test = Test.new def my_function_called_by_many_threads ... $test.count += 1 ... end Any why is the following a syntax error? class Test def +=(value) end end i.e why can't I define the += operator? regards, Richard.