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:44 pm

>> IF (WHATIF()) THEN
>
>
> You just illuminated the law of unintended consequences, that is,
> compiler too smart for its own breeches.


Why is that too clever? It is one way of doing conditional code in Fortran,
and I'd rather prefer to have the compiler eliminate such dead code than
carrying it around unnecessarily.

Jan
Sponsored Links







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

Copyright 2008 codecomments.com