=== on 14 Oct 2014, 13:54:23 Samuel Mercier wrote:
This rule cannot be implemented, as it relies on interpretation of the programmer's intent.


We could however make an approximation by forbidding exceptions to be caught within the same function they are thrown from.

=== on 14 Oct 2014, 18:49:03 Ann Campbell wrote:
\[~samuel.mercier] I suspect this Microsoft rule is a variant on the MISRA intent: http://msdn.microsoft.com/en-us/library/dd264997.aspx[DA0007: Avoid using exceptions for control flow]


I've also just seen an example of an http://www.gamedev.net/topic/445918-using-exceptions-to-control-the-flow-of-a-program-a-good-idea/[exception used in indirect recursion] _shudder_

=== on 14 Oct 2014, 20:12:11 Freddy Mallet wrote:
Indeed [~samuel.mercier], for sure if some exceptions are thrown and caught in the same function body, that means that exceptions are used for control flow. That's a good way to partially cover this rule.

