4 ms·
People used to use a flag in objects to say 'invalid because constructor failed', or make the constructor infallible, and have a separated initialise method whi
by chrisseaton 4y ago
People used to use a flag in objects to say 'invalid because constructor failed', or make the constructor infallible, and have a separated initialise method which could return an error code.