From: dpvc v. a. <we...@ma...> - 2005-07-05 01:46:45
|
Log Message: ----------- Don't load Parser.pl (it causes trouble with the Matrix.pm module). We only needed it because of the calls to Real() that were being used by Formula objects, so have them call Value::Real directly. be sure to get the latest versions of Parser and Value (including the top-level Parser.pm and Value.pm) in order to use this update. Modified Files: -------------- pg/lib/Parser/Legacy: PGanswermacros.pl Revision Data ------------- Index: PGanswermacros.pl =================================================================== RCS file: /webwork/cvs/system/pg/lib/Parser/Legacy/PGanswermacros.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -Llib/Parser/Legacy/PGanswermacros.pl -Llib/Parser/Legacy/PGanswermacros.pl -u -r1.3 -r1.4 --- lib/Parser/Legacy/PGanswermacros.pl +++ lib/Parser/Legacy/PGanswermacros.pl @@ -133,8 +133,8 @@ $useBaseTenLog , $inputs_ref , $QUESTIONNAIRE_ANSWERS , - $user_context , - $Context , + $user_context, + $Context, ); @@ -167,11 +167,8 @@ $QUESTIONNAIRE_ANSWERS = ''; if (!main::PG_restricted_eval(q!$main::useOldAnswerMacros!)) { - # - # Force loading of Parser.pl and get the Context command - # - main::PG_restricted_eval(q!loadMacros("Parser.pl")!); - $Context = main::PG_restricted_eval(q!\&Context!); + $user_context = main::PG_restricted_eval(q!\%context!); + $Context = sub {Parser::Context->current($user_context,@_)}; } } |