> Date: Wed, 3 Apr 2002 15:48:44 +0100
> From: Colin Millar <[log in to unmask]>
> I have only been programming in Fortran for a short time and have not yet
> become accustomed to its rules. I require to assign new properties to the
> basic operators (+,-,/,*) which will act upon derived type arguments. But I
> am having problems with syntax, I cannot seem to get the correct statements
> to declare a functions result as my derived type. As a test program I
> decided to use integer operators(+,-,/,*) to define complex operations by
> using the INTEFACE ASSIGNMENT (+) statement.
There is an example for exactly this (COMPLEX integers)
in my book: "Algorithms and Data Structures in F and Fortran"
ISBN 0 9640135 4 1 on pages 189-194.
The book may be purchased on-line at http://www.fortran.com
> Thanks in advance for any advice.
>
> Regards,
>
> Colin.
|