If I write:
def add(i,j)
i = i + j
end
i = 1
puts i
add(i,3)
puts i
I get
1
1
What would I have to change to get
1
4
? I presume this is covered in the Pickaxe book but can't find the
answer - a pointer to whereabouts it is covered would be great.
Sorry to be so dumb.
--
Posted via http://www.ruby-forum.com/.