17.09.2016, 02:24
(
Последний раз редактировалось Crayder; 18.09.2016 в 03:07.
)
Quote:
I'd rather ask here than make a whole new topic because I've looked into the matter now and got a little question:
Why use (flags & DEFINED_FLAG) ? Wouldn't (flags == DEFINED_FLAG) make more sense? I figured out that option 2 wouldn't work if you used multiple flags for one command. But as far as I'm concerned doesn't the & operation make a bitstring? Won't that bitstring be interpreted as an integer when using the && operator? Edit: I actually figured it out while typing this message, lol. Thanks a bunch! |