[system] Repository:
ViewVC logotype

Revision 172

Jump to revision: Previous Next
Author: gage
Date: Thu Aug 30 03:03:19 2001 UTC (18 years, 2 months ago)
Log Message:
Made sure that num_cmp, fun_cmp and str_cmp return an
answer evaluator when used in scalar context.  In other words

$ans_eval = num_cmp(234);

will now work as expected -- you will get one answer evaluator which
checks whether the answer is 234.

Previously you had to write:

($ans_eval) = num_cmp(234);

or else you would have the numeral 1 placed in $ans_eval since
that is how many answer evaluators were created.

Changed paths:

Path Details
Directorytrunk/webwork/system/courseScripts/PGanswermacros.pl modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9