For Programmers: Free Programming Magazines  


Home > Archive > Fortran > June 2004 > Re: Function PRESENT and logical combinations









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Function PRESENT and logical combinations
James Giles

2004-06-25, 7:43 pm

glen herrmannsfeldt wrote:
> Toon Moene wrote:

....
....[color=darkred]
> Now, if you modify WHATIF and relink (yes, linking is not
> part of the standard), what kind of result do you get?
>
> Say, for example I change to:
>
> LOGICAL FUNCTION WHATIF()
> WHATIF = .TRUE.
> END
>
> and link with the previously compiled version?


I don't know Toon's answer here, but my bet is that
inlined functions can't be relinked. In fact, I'd bet
that the object code for his original program doesn't
list WHATIF() as an external procedure reference.

As you say, linking (loading - why the change in traditional
terminology?) is not part of the standard and the standard
doesn't reqiure that programs may be processed by relinking
single changed procedures into the old code.

--
J. Giles

"I conclude that there are two ways of constructing a software
design: One way is to make it so simple that there are obviously
no deficiencies and the other way is to make it so complicated
that there are no obvious deficiencies." -- C. A. R. Hoare


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com