IntegersThe ObjectsThe empty object

The empty object

The first step in a program of SYMMETRICA is the generation of an object. This newly generated object is always an empty object. This is done in the following program
#include "def.h"
#include "macro.h"
main()
{
OP object;
anfang();
object = callocobject();  /* generation of an object */
freeall(object);          /* deletion of an object */
ende();
}
Using the routine callocobject() you generate an empty object. This object must have been declared using the type OP, which is also defined in "def.h". After all you have to delete the object, this is done using the standard routine freeall(), which works for all objects, not only with empty objects. If you print an empty object you will get a "#", which is the symbol for the empty object. If you change the above code into
...
object = callocobject();    /* generation of an object */
println(object);
freeall(object);            /* deletion of an object */
...
you get the following line

#

  • How to select the object kind
  • How to change the object kind

  • harald.fripertinger@kfunigraz.ac.at,
    last changed: November 19, 2001

    IntegersThe ObjectsThe empty object