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

  • 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)
  • 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)
  • Re: Problem with LIB$INIT_TIMER
    ... >a timer in my Fortran 77 program. ... I obtain the error message ... >Invalid form for CALL statement at ...
    (comp.os.vms)
  • Re: overloaded cant be distinguished by return values?
    ... but get an error message from ifort 9.1: ... their arguments ("Fortran 95/2003 Explained", ... deciding how to evaluate the RHS. ...
    (comp.lang.fortran)