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
Jan Vorbrüggen

2004-06-25, 7:43 pm

> 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'd rather like to see the function have a side-effect - e.g., change a
value in a common that is then later either referenced or not referenced.
I suspect that if it is not referenced, the resulting code will be identical
to the sample Toon provided.

Jan
Sponsored Links







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

Copyright 2008 codecomments.com