| | | How to change an INTEGERobject |
How to change an INTEGERobject
There is sometimes also the problem to change
the value of an existing INTEGERobject.
This is done using the routine
c_i_i().
Here is part of a corresponding program:
m_i_i(5L,a);println(a);
c_i_i(a,7L);println(a);
It will first print a line with the number 5, and then a line with the
number 7. Here is the full description:
- The NAME of this routine,
c_i_i, which is an abbreviation of
change_integerobject_integervalue,
- and its SYNOPSIS is:
INT c_i_i(OP a;INT b),
- and its DESCRIPTION:
It changes the INTvalue b of a. There is
first a check whether a is an INTEGERobject or not.
- The RETURN:the returnvalue is OK or ERROR if an error
occured.
- And the corresponding MACRO is
C_I_I, which does the same without a check on INTEGERobject.
harald.fripertinger@kfunigraz.ac.at,
last changed: November 19, 2001
| | | How to change an INTEGERobject |