Project

General

Profile

Slug #99

Function "insert": obsolescent

Added by John Abbott about 12 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
CoCoA-4 function: obsolete
Target version:
Start date:
07 Mar 2012
Due date:
% Done:

100%

Estimated time:
2.00 h
Spent time:

Description

As far as I can tell Insert is never called by any function in the standard CoCoA packages.

I would like to make the function obsolescent. If that is not acceptable I wuld like to add some comments on the manual page that use of Insert is best avoided (for reasons of efficiency of for no other), and mention using either the function Append or simply assigning to an entry in the list as better alternatives.

C5 differs slightly from C4. In C4 it is possible to Insert an element after the last entry in a list (by specifying position 1+Len(L)); in C5 it is not currently possible because specifying position 1+Len(L) gives a run-time "out of range" error. JAA regards this as a bug in the C5 implementation (at low level) -- it may easy be worked around by modifying the defn of Insert in the file BackwardCompatible.cpkg5

History

#1 Updated by Anna Maria Bigatti almost 12 years ago

  • Category set to CoCoA-4 function: obsolete

#2 Updated by Anna Maria Bigatti about 10 years ago

  • Target version set to CoCoA-5.1.0 Easter14

#3 Updated by John Abbott about 10 years ago

  • Target version changed from CoCoA-5.1.0 Easter14 to CoCoA-5.1.1 Seoul14

#4 Updated by Anna Maria Bigatti over 9 years ago

  • Status changed from New to Feedback
  • Assignee set to Anna Maria Bigatti
  • % Done changed from 0 to 90

Documented as obsolescent

#5 Updated by Anna Maria Bigatti over 9 years ago

  • Subject changed from Insert function to Function "insert": obsolescent
  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF