[comp.lang.eiffel] Beginners questions on genericity

bglenden@colobus.cv.nrao.edu (Brian Glendenning) (03/26/91)

Excuse me if these questions are too simple for the group. Please
email the answer(s) and I will summarize if there is any interest.

I have just started playing around with Eiffel. As a test, I thought I
would make some test classes based on vectors, where vectors are more or
less arrays with math operations for now.

I have figured out how to do this:
a, b, c: VECTOR[REAL]
...
a = b + c

I'm not sure how to go about this:
a, b: VECTOR[COMPLEX];
c: VECTOR[REAL]
...
a = b + c

or this:
a, b: VECTOR[REAL]
...
a = 5*b

Thanks for your advice.

Brian
--
       Brian Glendenning - National Radio Astronomy Observatory
bglenden@nrao.edu          bglenden@nrao.bitnet          (804) 296-0286