Hi, I would like to use a uint32 variable in Chora as a bitfield, that is I would like to be able to control individual bits in the variable, and use them as flags.
In C, so that I can access individual bits, I would create a structure like this:
Struct
{
unsigned int aMonday : 1;
unsigned int aTuesday : 1;
unsigned int aWednesday : 1;
unsigned int aThursday : 1;
unsigned int aFriday : 1;
unsigned int aSaturday : 1;
unsigned int aSunday : 1;
} DayOfTheWeek;
Is a structure like this possible in Chora please?