2 ms·
It is possible with global or contextual error state. This approach is used in iostream for example, and in a broken way in C library via errno. (Which does no
by AstralStorm 10y ago
It is possible with global or contextual error state.
This approach is used in iostream for example, and in a broken way in C library via errno. (Which does not work unless you check it very near.)
Similar approach is often used in databases and file systems, marking an object as dirty or broken.
Like the above, it is prone to ignoring errors and attempting to manipulate such object.