Top
Back: 5.1.56 kbase
Forward: 5.1.58 killattrib
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.57 kill

Syntax:

kill ( name )
kill ( list_of_names )

Type:

none

Purpose:

deletes objects.

Example:
 
  int i=3;
  ring r=0,x,dp;
  poly p;
  listvar();
→ // r                    [0]  *ring
→ //      p                    [0]  poly
→ // i                    [0]  int 3
→ // LIB                  [0]  string standard.lib
  kill(i,r);
  // the variable `i` does not exist any more
  i;
→    ? `i` is undefined
→    ? error occurred in line 7: `  i;`
  listvar();
→ // LIB                  [0]  string standard.lib

See defined; general_lib; names.


Top Back: 5.1.56 kbase Forward: 5.1.58 killattrib FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.