Re: REAL with generics constraint
Frank Salter <[email protected]>
| Newsgroups | gmane.comp.lang.eiffel.smalleiffel |
|---|---|
| Message-ID | <[email protected]> |
Arnaud Payement wrote: > > > I am using eiffel to write a VECTOR class with operation like dot and > cross products and I need to get the norm of the vector. Therefore, I > am using the sqrt methods of the REAL type. However, I want to use my > class with REAL_32 or REAL_64 etc ... I use generics with constraint > but REAL_64 and REAL_32 doesn't have a root class with the sqrt > methods !!!!!! How can I do that ? I am new to Eiffel, so my question > is perhaps a stupid one. My code : > Have you looked at REAL_GENERAL. I don't know what the current state of play is. Regards Frank Salter