The Motley Fool Discussion Boards

Previous Page

Fun & Games / Math Recreations & Puzzles

URL:  http://boards.fool.com/rev2217norm-the-standards-of-most-programming-29567152.aspx

Subject:  Re: A (complex) puzzle Date:  9/27/2011  11:15 AM
Author:  rmhj Number:  5793 of 5887

rev2217/norm: The standards of most programming languages, including Fortran and C/C++, explicitly forbid optimizations that fail to preserve the integrity of parentheses in order to give programmers control of the sequence of operations when it matters. Thus, such an optimization is illegal.

This is (or was) part of the FORTRAN (IV) standard; I can't say about newer FORTRANs, though