From: Joe Ruby MUDCRAP-CE Date: 2006-10-03T05:03:39+09:00 Subject: Re: Why can't Ruby automatically cast variables? Sammy Larbi wrote: > Joe Ruby MUDCRAP-CE wrote: > >>a='2' >>b=3 >> >>puts a.to_i + b >> >>Why can't (or can?) Ruby just handle 'puts a + i' or 'puts a+b'? >> >> >> > How would it know whether you wanted to concatenate the two, or add > them? By reading my mind. Joe -- Posted via http://www.ruby-forum.com/.