Hi.

In message "[ruby-talk:15847] Re: newbie question"
    on 01/05/28, Elton Li <eli / waite.adelaide.edu.au> 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.