>
> Should other object have operators for comparison? Should we have something
> that's in a superclass?
>
> Yea, that crossed my mind, but we're not very consistent about attibute
names ('ip' in this case, 'value' most often, but sometimes 'val'), so it's
hard to know what to do in ParamValue.
We could define a __cmp__ on NumericParamValue though, and that would cover
a lot of ground.
Another thing I considered is that we might want to switch a lot of the
ini_str() implementations to __str__(). The default for ini_str() is
str(self), and then you get prettier printing when debugging as well as in
the config.ini file.
There's also one case (Time) that has a redundant ini_str() definition that
matches the ParamValue default.
Steve
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev