[#1816] Ruby 1.5.3 under Tru64 (Alpha)? — Clemens Hintze <clemens.hintze@...>

Hi all,

17 messages 2000/03/14

[#1989] English Ruby/Gtk Tutorial? — schneik@...

18 messages 2000/03/17

[#2241] setter() for local variables — ts <decoux@...>

18 messages 2000/03/29

[ruby-talk:02091] Array Gotchas

From: "Dat Nguyen" <thucdat@...>
Date: 2000-03-23 01:59:43 UTC
List: ruby-talk #2091
While I was wondering why '+' was the concatenation and '-' was the 
subtraction, I learned that Array indeed has the concat(other) method, but 
not the substract(other) method and many other explicite spelling ones.

There is already '+' for concatenation, why concat(other). When 
concat(other) why not substract(other) also. And what about union(other), 
etc.

This is a sort of incompleteness and redundancy.

By chance, I also discovered a bug in the manual where it claims the 
following are the same:

each_index {...}
(0..ary.size).each {...}

But they aren't. Do you see why?

Dat

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

In This Thread

Prev Next