This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: g77: dreal, dimag, and dcmplx
- To: htl10 at cus dot cam dot ac dot uk
- Subject: Re: g77: dreal, dimag, and dcmplx
- From: Craig Burley <burley at gnu dot org>
- Date: Thu, 16 Jul 1998 13:52:02 -0400 (EDT)
- CC: egcs-bugs at cygnus dot com
>complex*16 Z
>real*8 a, b
>a = real (Z)
>b = imag (Z)
>
>g77 -Wall only complains about real should be "dreal" (okay, it says it is
>ambiguous and point you to "info -f g77 complex" or something like that),
>but it doesn't moan about imag should be "dimag". Surely that should be
>implemented for uniform behaviour?
That's very tempting for me to do. ;-)
But, the problem doesn't exist for IMAG, because there's no ambiguity;
IMAG means only "extract imaginary part". Whereas, REAL means either
"extract real part" or "convert to single-precision", depending on
who you talk to (or what code you look at) at any one time.
Personally, I love symmetry, orthagonality, elegance, beauty, and
chocolate...but I still work on g77. :)
tq vm, (burley)