Minor changes to Restraint::evaluate, safe_evaluate
![](https://secure.gravatar.com/avatar/1294d100c1f5fcd24f7ba4dc0349cfac.jpg?s=120&d=mm&r=g)
23 Sep
2009
23 Sep
'09
6:34 a.m.
Restraint::evaluate() now always should return the correct answer (before it could return garbage if not called from Model::evaluate()). Internally, restraints now have a function Restraint::unprotected_evaluate() which does the actual evaluation (and is what you implement when you implement a restraint). Restraint::evaluate() makes sure the model's score states are updated before calling Restriant::unprotected_evaluate().
5619
Age (days ago)
5619
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniel Russel