❔ Design Question
Let's say I've got a class
The question is, should the library be able to change the state of the program directly? The way it would do this is by something like
Application which drives the program. And let's say during execution of the program, it makes regular calls to a class library I have. Now depending on the response from the library, it will change the state of the program. The question is, should the library be able to change the state of the program directly? The way it would do this is by something like
Application.stateChange(). I felt iffy about this because it means Application calls the library and the library calls Application. Is a better way to do this just that the library returns a status code?