[system] Repository:
ViewVC logotype

Revision 3192

Jump to revision: Previous Next
Author: dpvc
Date: Wed Mar 16 13:30:28 2005 UTC (14 years, 8 months ago)
Log Message:
Update the overloaded operators so that they can be overridden by
subclasses of the predefined object classes.  This involves calling
the objects method rather than using a hard reference to the routine
in the parent class.

Also, change the name of the string comparison routine to
compare_string to avoid conflicts with cmp that is used to produce the
answer checker for the class.

Finally, in Value.pm, promotePrecedence no longer has to do fancy
footwork to get "special" precedence to work (this was a hack to get
around the misfeature of the overloaded operators -- now that that is
being handled correctly, there is no need for it).

Changed paths:

Path Details
Directorytrunk/pg/lib/Value/Complex.pm modified , text changed
Directorytrunk/pg/lib/Value/Formula.pm modified , text changed
Directorytrunk/pg/lib/Value/Infinity.pm modified , text changed
Directorytrunk/pg/lib/Value/Interval.pm modified , text changed
Directorytrunk/pg/lib/Value/List.pm modified , text changed
Directorytrunk/pg/lib/Value/Matrix.pm modified , text changed
Directorytrunk/pg/lib/Value/Point.pm modified , text changed
Directorytrunk/pg/lib/Value/Real.pm modified , text changed
Directorytrunk/pg/lib/Value/String.pm modified , text changed
Directorytrunk/pg/lib/Value/Union.pm modified , text changed
Directorytrunk/pg/lib/Value/Vector.pm modified , text changed
Directorytrunk/pg/lib/Value.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9