Project

General

Profile

Bug #524

BuiltInFunctions: remove calls to WrongTypeException

Added by Anna Maria Bigatti about 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
High
Category:
Parser/Interpreter
Target version:
Start date:
08 Apr 2014
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:

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

Related to CoCoA-5 - Design #294: BuiltInFunctions: General "OneLiner" for arguments of different typeClosed2013-01-23

Related to CoCoA-5 - Design #597: Interpreter.C: remove calls to WrongTypeExceptionNew2014-07-28

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!

Also available in: Atom PDF