Yes, that really freaked me out the first time it happened to me...
Need n = m.dup

On Thu, Aug 28, 2008 at 10:48 PM, Martin DeMello
<martindemello / gmail.com> wrote:
> Also note that this will not do what you expect from other languages
>
> m = MyInteger.new 41
> n = m
> puts m
> puts n
> m.send "++"
> puts m
> puts n
>
> martin
>
>



-- 
Peter: I'll handle it, Lois. I read a book about this sort of thing once.

Brian: Are you sure it was a book? Are you sure it wasn't nothing?

Peter: Oh yeah.