Bugs item #798637, was opened at 2003-09-01 16:01
Message generated for change (Comment added) made by npstrick
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439479&aid=798637&group_id=44411
Category: None
Group: None
Status: Open
Resolution: None
Priority: 8
Submitted By: Ken Monks (monks)
Assigned to: Nobody/Anonymous (nobody)
Summary: Another error in Class/IndexFunction
Initial Comment:
The following error message:
"Error, (in Class/IndexFunction) Type error in
assignment: field InertFunction in class InertExpr should
have type Inert"
That occurs quite frequently when trying quizzes,
though I can't reproduce the exact conditions to make it
repeatable. If I change the 3 lines labeled "WAS:" in
Class/IndexFunction in Class.mpl back to what they were
the error seems to go away. I don't really understand
the Class/IndexFunction proc or why those changes
were made in the first place so I don't want to just
change it back since someone obviously changed them
for a reason.
Is this related to Gustav's Class/IndexFunction error
[796266 sporadic prompt field error]?
----------------------------------------------------------------------
>Comment By: Neil Strickland (npstrick)
Date: 2003-09-01 17:27
Message:
Logged In: YES
user_id=430681
It was me that made these changes, in response to bug
number 796262 ("c> type error"). Previously, if x was an
object created by the OOP framework, then an
assignment like x['Foo'] := bar; would fully evaluate bar.
In particular, questionversion['MapleType'] := vector;
would set questionversion['MapleType'] to the vector()
procedure, whereas you really need it to be set to the
unevaluated name 'vector'.
Anyway, the probable explanation of Ken's bug is that
there is an assignment x['InertFunction'] := bar, where
bar evaluates to something of type Inert, but bar itself
does not have type inert. This assignment should be
changed to x['InertFunction'] := eval(bar); I hope that
will fix the problem. I will let Ken look at this, as I have
not understood the Inert stuff yet.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=439479&aid=798637&group_id=44411
|