Hello!

In ruby FAQ, I find the following code.

  def addOne(n)
    n += 1
  end
  a = 1
  addOne(a)      # -> 2
  a              # -> 1


According to the manual, Fixnum is a value type.
Then the argument 'a' must be changed in-place.

Am I misunderstanding?

Thanks in advance.

Sam