Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flag variable ??
#1
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


Forum Jump:


Users browsing this thread: 1 Guest(s)