Update of /cvsroot/aimmath/AIM/WEB-INF/maple/aim
In directory sc8-pr-cvs1:/tmp/cvs-serv22576/WEB-INF/maple/aim
Modified Files:
TextQuestion.mpl
Log Message:
Class/IndexFunction modified so that field assignments do not
automatically evaluate the expression being assigned. This seems
like it is the right behaviour, but there may be other changes that
need to be made in response.
Index: TextQuestion.mpl
===================================================================
RCS file: /cvsroot/aimmath/AIM/WEB-INF/maple/aim/TextQuestion.mpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TextQuestion.mpl 25 Aug 2003 21:47:19 -0000 1.3
--- TextQuestion.mpl 27 Aug 2003 22:34:38 -0000 1.4
***************
*** 159,163 ****
ans := eval(attempt['Answer']);
rightans := eval(this['RightAnswer']);
! mapletype := eval(this['MapleType']);
msg := "";
--- 159,163 ----
ans := eval(attempt['Answer']);
rightans := eval(this['RightAnswer']);
! mapletype := this['MapleType'];
msg := "";
***************
*** 551,555 ****
__("Your answer should have type"),
"\n<br/>\n<font color='blue'><tt>",
! sprintf("%A",eval(reqtype)),
"</font></tt>\n<br/>\n",
__("but it does not."),
--- 551,558 ----
__("Your answer should have type"),
"\n<br/>\n<font color='blue'><tt>",
! # WAS: sprintf("%A",eval(reqtype)),
! # I took out the eval to prevent problems when reqtype = vector
! # I am not sure if this might introduce other problems. NPS
! sprintf("%A",reqtype),
"</font></tt>\n<br/>\n",
__("but it does not."),
|