next up previous contents index
Next: How to create and Up: Objects and structures Previous: Object types   Contents   Index


Objects

An object is a structure of this kind :

typedef struct _OBJET { 
    obj\_typ       *typ_obj;
    char           *adresse;
    int             occup;
    char           *nom_obj;
    int            *dim;
} obj;

typ_obj is the address of the object type of the object (cf. 6.1).

adresse is the address of the array. It is NULL if the object is not already initialized.

occup is 0 if the object has not been initialized, 1 otherwise. If it is 1, the array is allocated.

nom_obj is the name of the object.

dim[i] is the i-th dimension of the array.



2009-11-12