This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbie willing to contribute...


On Mon, Nov 07, 2005 at 09:31:05AM -0800, Richard E Maine wrote:
> On Nov 7, 2005, at 5:31 AM, Pierre-Matthieu anglade wrote:
> >I haven't been able to find the spec at the j3 fortran site...
> >This is a problem because I don't know what complex(double , real) or
> >complex(real, double) is suppose to output.
> >Does anyone knows about this?
> 
> You didn't find the spec there because it isn't part of the Fortran 
> standard. There are people who have proposed making such a thing 
> standard (and I tend to think that a good idea), but it isn't now. Thus 
> there is no authoritative spec.
> 
> The first part of any such project would be to write such a spec. As 
> you note, there are cases where it isn't completely obvious. Other 
> interesting cases include
> 
>   complex(longish_integer, longish_integer)
> 
> where the integer is long enough to loose precision in real. Should 
> this promote to double? And don't forget cases mixing integer and real.
> 
> It isn't as though it is horribly difficult to spec this all out, but 
> there are one or two philosophical choices to be made. One would 
> probably want to look at other implementations of such things to at 
> least try for some commonality and improve the odds that, if it ever is 
> standardized, you won't end up with an incompatibility to work around.
> 

http://gcc.gnu.org/onlinedocs/gcc-3.4.4/g77/Complex-Intrinsic.html#index-Complex-intrinsic-846

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]