1 IntFlags flags; 2 assert(flags.toString() == "{}"); 3 4 flags = IntFlag.undef; 5 assert((flags.toString() == "{undefined result}") && (flags.toString() == IntFlag.undef.toString())); 6 7 flags |= IntFlag.imag; 8 assert(flags.toString() == "{undefined result, imaginary component}", flags.toString());
Get a string representation of the list of set flags.