Message272737
You still can use identity testing for named instances of IntFlags. But since the purpose of IntFlags is replacing int flags, tested values can be int (e.g. when read from files as ints). For unknown values you should use either equality testing or wrap them in IntFlags.
In your example MyFlags.FIRST & MyFlags.SECOND is MyFlags.NONE. If MyFlags.NONE not exists, the result is MyFlags(0). You can apply the patch and experiment with it. |
|
Date |
User |
Action |
Args |
2016-08-15 08:50:58 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, barry, ezio.melotti, r.david.murray, eli.bendersky, ethan.furman, martin.panter, veky |
2016-08-15 08:50:57 | serhiy.storchaka | set | messageid: <1471251057.66.0.907767634977.issue23591@psf.upfronthosting.co.za> |
2016-08-15 08:50:57 | serhiy.storchaka | link | issue23591 messages |
2016-08-15 08:50:57 | serhiy.storchaka | create | |
|