Bug #524
BuiltInFunctions: remove calls to WrongTypeException
Description
Many functions calling to WrongTypeException could be modernized using EvalArgAsT1OrT2.. making the code shorte, more readable, more robust (no risk to forget one type in the error mesg)
Related issues
History
#1 Updated by Anna Maria Bigatti about 10 years ago
I've done some work on gcd and lcm (among the worst).
I think it's more readable now.
NB: There is no PtrCastList because a vector needs to know what it's a vector of.
#2 Updated by Anna Maria Bigatti about 10 years ago
I modernized RingOf: code much much nicer now!
#3 Updated by Anna Maria Bigatti almost 10 years ago
Done BaseRing. I'll do the rest tomorrow
#4 Updated by Anna Maria Bigatti almost 10 years ago
- Status changed from New to Feedback
- Priority changed from Normal to High
- % Done changed from 0 to 90
All done (ascii
, apply
, ContentWRT
, CoefficientWRT
).
Changed priority to high because I'm presenting this in Seoul ;-)
There is only one call left in BuiltinFunctions-Normaliz.C
but that is a special case for inputing a record (a non standard situation)
#5 Updated by Anna Maria Bigatti over 9 years ago
- Status changed from Feedback to Closed
- % Done changed from 90 to 100
There are a few more WrongTypeException
left in Interpreter.C
.
Those are of a slightly different nature and should go into another issue.
This one is done!