[#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:02089] Array other wonder

From: "Dat Nguyen" <thucdat@...>
Date: 2000-03-22 23:48:57 UTC
List: ruby-talk #2089
According to the Ruby manual:
self + other
The array concatenation

This takes away the other natural operator addition or plus. There are 
applications that need to add two numeric arrays with the same dimension, 
no?

Would the solution be creating a subclass that introduces a new method like:
self.add other

But where would the sum go?

Dat

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

In This Thread

Prev Next