Re: overloaded cant be distinguished by return values?



Michael Metcalf wrote:
"Berthold "Höllmann"" <berthold@xxxxxxxxxxxxx> wrote in message
news:seodk2la4b.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I am trying to distinguisch overloaded functions by their result value
but get an error message from ifort 9.1:

The message is correct. Overloaded procedures are disambiguated according to
their arguments ("Fortran 95/2003 Explained", Section 5.18).
Regards,

Being more general (please correct me if I'm wrong...), this is an
example of the rule in Fortran that the RHS of any expression is
evaluated before the LHS is considered. This is why

REAL :: a
a = 1/2

results in a being set equal to zero.

Richard
.



Relevant Pages

  • Was there a negative real zero possibility in early Fortran?
    ... 99 (WRITE ERROR MESSAGE) ... I already have found severe errors; one example is this original code ... I know this version was written for an IBM 360 in Fortran H (Fortran ... Is there any reason why the programmer is testing in some cases, ...
    (comp.lang.fortran)
  • Re: problem with unhandled exception (acces violation) and undefined array/pointer
    ... Fortran requires that the data type and kind, etc.) match that of the corresponding dummy argument in the routine being called. ... You are using Intel Visual Fortran which, by default, will warn you about such mismatches. ... My guess is that there is an error message, but it's in the console output window which is behind the debugger window. ...
    (comp.lang.fortran)
  • Re: ELF detector
    ... >>Or in Fortran, even earlier! ... My pseudocode produces an extreme outlier ... >error message that stops the program. ...
    (sci.electronics.equipment)
  • Re: ELF detector
    ... >>Or in Fortran, even earlier! ... My pseudocode produces an extreme outlier ... >error message that stops the program. ...
    (sci.electronics.design)
  • problem with function as argument of procedure
    ... I've been away from Fortran for a while, ... (I REALLY like the references to the standard in the error message; ... Perhaps I don't understand the error message well enough. ... because of the way internal procedures might be ...
    (comp.lang.fortran)