- 
                Notifications
    You must be signed in to change notification settings 
- Fork 271
Fixes potentially outdated value of getVal #993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| Can you add a test that fails without this, please? I'm a bit worried about scripts that call  Can we somehow circumvent this? A terrible idea I just had was to attach an even handler to every model, that catches  | 
| 
 We could maybe prevent it in the solving stage, and raise and error guiding the user to the other methods. | 
| what was it that we decided was the better way to deal with this @mmghannam ? | 
| 
 The check allows to call  | 
| @mmghannam I remember we had a discussion about this, with a better way to do this. Do you remember what it was? I'm not too fond of preventing it in the solving stage, since the intended behavior seems clear, and crashing the user's code seems somewhat frustrating. | 
| I unfortunately don't remember. I would also lean on the side of allowing it in the solving stage. Regarding the eventhandler idea, this would add an overhead to all models, which is not so nice. But either this solution or the eventhandler, any overhead is worth not returning an outdated value. | 

Without this, the value could be outdated as it depends on calling
getBestSolbefore.