03-12-2009, 05:24 PM
I'm using a lot of flags in my programming, with or without defining constants.
Then i have been thinking...
Maybe a new variable type 'flag' could make it easyer to use flags like this:
- declare a flag: flag f
- then set bit 1: f.1.set
- test a flag: if(f.1) ...
- test and set: if(f.1.set) ...
Also it should be possible to use named flags:
- declare: flag f("name1 name2 name3") ; and use: f.name1 ...
This is one of my wishes for QM.
Joergen
Then i have been thinking...
Maybe a new variable type 'flag' could make it easyer to use flags like this:
- declare a flag: flag f
- then set bit 1: f.1.set
- test a flag: if(f.1) ...
- test and set: if(f.1.set) ...
Also it should be possible to use named flags:
- declare: flag f("name1 name2 name3") ; and use: f.name1 ...
This is one of my wishes for QM.
Joergen