I learning Eiffel, and i know that in C
i can do something like this to set the headers files for example::
#define USER_ACTIVE 0
#define WHEN_SOMETHING 1
#define WHERE_HAND 2
#define WHERE_ACTIVE 3
#define WHERE_GOOD 4
and also having instances for example:
typedef struct something {
int user;
int where;
int somethingelse
}something;
or even collection functions pointers:
typedef struct decisions {
void (*init)(struct something *s, int who, double factor);
}decisions;
And it is the same story for almost all normal programming languages.. i been looking around fx here besides that it is not well translated, for me is hard to grasp how to do it.. so is there a "normal" way to doing this in this language? or all has to be done spaghetti style?
thanks