Template:Computer Programming/Error Handling/3
From Wikibooks, open books for an open world
This technique does not look very nice in mathematical calculations.
[edit] Global variable
An error condition is stored inside a global variable. This variable is then read directly or indirectly via a function.