T
Tony Johansson
Hello!
Here we have an enum declaration
enum OnOff {On,Off}
One thing that is strange is why the default type for containing items in an
enum is of type int.
It should be enough in 99,9% to use byte.
I know I can use
enum OnOff : byte {On,Off}but the default type should be byte to save
memory.
So is there a reason why the containing items in an enum is of type int ?
//Tony
Here we have an enum declaration
enum OnOff {On,Off}
One thing that is strange is why the default type for containing items in an
enum is of type int.
It should be enough in 99,9% to use byte.
I know I can use
enum OnOff : byte {On,Off}but the default type should be byte to save
memory.
So is there a reason why the containing items in an enum is of type int ?
//Tony