Again, Ruby

ambs on 2004-02-01T21:36:19

Tried it a little (30 minutes), so I didn't messed up with objects nor threads, but in these 30 minutes what I liked:

5.times { ... }
5.upto(20) { ... }

At least the first one, if possible to use with an integer variable $nr.times{...} it could have some use. The same for the second... easier to read than a typical C for but so easy as a for(5..20) perl for.

What I didn't like, was to use the sin function. Some print 3.4.sin does not work as expected.