From: matz@... (Yukihiro Matsumoto) Date: 2001-05-28T18:18:11+09:00 Subject: [ruby-talk:15851] Re: newbie question Hi. In message "[ruby-talk:15847] Re: newbie question" on 01/05/28, Elton Li writes: |Why is "duration" in durationInMinutes (ie in the statement |duration/60.0) not a local variable but "duration" is a local variable |in durationInMinutes (ie in the statement duration=(value*60).to_i)? Because the former conflicts with local variable assignment (or in other word, declaration), OTOH the latter not (since no local variable named "duration" is used before). matz.