Top "Flags" questions

Flags are atomic data structures used to identify state in a program.

Why do the INC and DEC instructions *not* affect the Carry Flag (CF)?

Why do the x86 instruction INC (increment) and DEC (decrement) not affect the CF (carry flag) in FLAGSREGISTER?

assembly x86 increment flags decrement
Is there a way to filter output in Google Chrome's console?

I'm getting a lot of noise from the output of the 3rd party's page i'm currently playing with and i …

javascript console filtering flags google-chrome-devtools
Activity stack ordering problem when launching application from Android app installer and from Home screen

For testing purposes only, I am allowing my app APK to be downloaded and installed via a URL. Once downloaded …

android android-activity android-intent task flags
Golang flag redefined

I have flags that may be defined in multiple components. Its not possible to know if a component has already …

go flags
C# Enums - Check Flags against a Mask

I have the following enum flags: [Flags] private enum MemoryProtection: uint { None = 0x000, NoAccess = 0x001, ReadOnly = 0x002, ReadWrite = 0x004, WriteCopy = 0…

c# .net enums flags enum-flags
Java flag to enable extended Serialization debugging info

I am currently struggling with HTTP Session replication on tomcat with complex objects. Some objects implement Serializable but hold non-serializable …

java debugging serialization flags
Why use flags+bitmasks rather than a series of booleans?

Given a case where I have an object that may be in one or more true/false states, I've always …

c# enums flags
Enums - All options value

Is there a way to add an "All values" option to an enum without having to change its value every …

c# enums bit-manipulation flags
Changing the RegExp flags

So basically I wrote myself this function so as to be able to count the number of occurances of a …

javascript regex prototype flags
What are PHP flags in function arguments?

I noticed that some functions in PHP use flags as arguments. What makes them unique instead of plain string arguments? …

php function flags