You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it will fail because the minmax setter calls _min, then _max. _min has the line if ($self->max == $new_value), which is true in the moment, so $self->{minValue} = $new_value; never happens.
I thought that just switching _min and _max in minmax would work, but not for the case where new max == old min. So maybe in minmax you want to call the _min, _max pair twice? Doesn't look like it would introduce too much overhead. I couldn't quickly think of any logic to easily change _min, but haven't spent too much time on it.
I got around it for now buy having
$new_min = $old_max +1;
The text was updated successfully, but these errors were encountered:
This needs to be fixed, but I'll have to think about just how to fix it. One thing would be to check if either the $new_max == $old_min or $new_min == $old_max in minmax.
If I have some scenario like this:
it will fail because the minmax setter calls _min, then _max. _min has the line
if ($self->max == $new_value)
, which is true in the moment, so$self->{minValue} = $new_value;
never happens.I thought that just switching _min and _max in minmax would work, but not for the case where new max == old min. So maybe in minmax you want to call the _min, _max pair twice? Doesn't look like it would introduce too much overhead. I couldn't quickly think of any logic to easily change _min, but haven't spent too much time on it.
I got around it for now buy having
The text was updated successfully, but these errors were encountered: