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
bv

2004-06-25, 7:44 pm

Ton Moene wrote:
>
> IF (WHATIF()) THEN
> PRINT*, 'WHOAH'
> ELSE
> PRINT*, 'YEAH, RIGHT'
> ENDIF
>
> part and only retained the
> PRINT*, 'YEAH, RIGHT'


You just illuminated the law of unintended consequences, that is,
compiler too smart for its own breeches. I had a similar case
where a mere absence/presence of "close" resulted in a changed file
status upon reloading the app (dll) even though the "else" was *never*
even executed.

Sponsored Links







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

Copyright 2008 codecomments.com