Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!mcnc!uvaarpa!murdoch!murdoch.acc.virginia.edu!bglenden From: bglenden@colobus.cv.nrao.edu (Brian Glendenning) Newsgroups: comp.lang.eiffel Subject: Beginners questions on genericity Message-ID: Date: 26 Mar 91 01:27:08 GMT Sender: usenet@murdoch.acc.Virginia.EDU Organization: National Radio Astronomy Observatory Lines: 30 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