ok, let's take v2.The v2, with the documentation in place seems sufficient.[..]It's not necessary - but maybe better. Here comes v3 with a sanitizer.I could implement a sanitize mechanism of the ladder governor thatNo, I dont think thats necessary, current code suffices it.
takes care the "disable" variables of all deeper states are set to 1,
if a state is disabled, and those of all lighter states are set to 0,
if a state is enabled. Do you wish me to do that?
The disable flag is knob we are giving to the user . So may be just
document the intended use of disable flag working
alongside design of ladder governor.
Is this too ugly?
Yup, this adds unnecessary fields which are not much use
coz the same can be achieved with just disable flag check.
Also, any reason why the patch is being sent as an attachment ?Sorry.
Sending patches as an attachment is not a recommended practice.