newbie willing to contribute...

Erik Schnetter schnetter@cct.lsu.edu
Mon Nov 7 18:05:00 GMT 2005


On Nov 7, 2005, at 12:01:09, Steve Kargl wrote:
> http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77/Complex- 
> Intrinsic.html#index-Complex-intrinsic-846

What about introducing an intrinsic gfortran_good_real_kind(a,b) that  
looks as the types and kinds of a and b (which can be integer, real,  
or complex) and finds a "good" real kind that corresponds to a and b,  
according to the rules laid out in the web page above?  Than you can say

complex(a,b) = cmplx(a,b,gfortran_good_real_kind(a,b))

and have a much easier implementation.  And since the routine is  
codified in the compiler, the conversion rules are also clear.

-erik

-- 
Erik Schnetter <schnetter@cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20051107/945daae7/attachment.sig>


More information about the Fortran mailing list