Top "Flags" questions

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

Best practices for bit flags in PHP

I'm writng a small application in PHP + MySQL and have come to the point where there is an object that …

php mysql flags
Java integer flag and bitwise operations for memory reduction

Is using an integer flag and bitwise operations an effective way of reducing the memory footprint of high volume Objects? …

java performance memory-management bit-manipulation flags
How to allow -z multidefs with g++47

How can I tell the linker of g++ to allow multiple definitions of symbols (choose the first appearance)? -z multidefs …

c++ linker g++ flags linker-flags
Get active flags on Android Window

is it possible to get programmatically which flags are currently active on a Window? We can enable flags with: getWindow().…

android window flags window-managers
Large flags enumerations in C#

Hey everyone, got a quick question that I can't seem to find anything about... I'm working on a project that …

c# enumeration endianness flags
How to remove a flag in Java

Hi I need to remove a flag in Java. I have the following constants: public final static int OPTION_A = 0…

java flags
Printing Flags Enum as Separate Flags

I have a flags enum defined like this: [Flags] public enum MyEnum { None = 0x00, Choice1 = 0x01, Choice2 = 0x02, Choice3 = 0x04, …

c# enums flags
Storing EnumSet in a database?

So in C++/C# you can create flags enums to hold multiple values, and storing a single meaningful integer in …

java flags
What does regex' flag 'y' do?

MDN says: To perform a "sticky" search, that matches starting at the current position in the target string, use the …

javascript regex flags
Assembly instruction for setting, clearing OF & TF flags

Are there any assembly instructions to let us directly "set" or "clear" the "OF" and "TF" flags in Intel's 8086 16-bit …

x86 intel flags masm x86-16