[system] Repository:
ViewVC logotype

Revision 5468


Jump to revision: Previous Next
Author: dpvc
Date: Sat Sep 8 21:33:53 2007 UTC (12 years, 4 months ago)
Log Message:
The make() method now inherits all the settings of the parent object,
so that flags set by the user (e.g., tolerances, periods, and so on)
will be passed on as new objects are created.  For example, in

     $x = Real(1)=>with(tolerance=>.0001);
     $y = sin($x);

$y will also have tolerance set to .0001.

This also applies to binary operations, where the result will now
inherit all the values of either operand, with the left-hand operand
taking precedence when they both have a flag set but to different
values.

This is a significant change, and there may be unforeseen side effects
that I'll have to take care of as they appear.  It passes my test
suite, however, so I'm hoping they will be limited.

Changed paths:

Path Details
Directorytrunk/pg/lib/Value/Complex.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/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