Closed tudortimi closed 1 year ago
One question that remains is how to handled super.pre_randomize()
. Shall the default contents of pre_randomize_begin/end
contain a call to super.pre_randomize()
?
Actually, it might be a better idea to stop using pre_randomize()
all-together. We might be able to do it by creating a dummy rand
object inside the class and using that object's pre_randomize()
as a callback to handle global/instance constraints.
Fixed in #11
The
constraints_utils
macro has to implementpre_randomize()
, in order to insert constraints. There are cases, though, where the user would like to also add code topre_randomize()
. Something like the following might be ok:The statements between the
pre_randomize_begin/end
macros should be added to the implementation ofpre_randomize
.