Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: flags & flagMask == flagMask can be true for flags != flagMask if flags is a superset of flagMask ? Date: Thu, 18 Aug 2022 10:46:04 -0700 Organization: None to speak of Lines: 34 Message-ID: <87r11dbg2r.fsf@nosuchdomain.example.com> References: <2_udnWeXSoEpw2P_nZ2dnZfqnPXNnZ2d@brightview.co.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="99a9087a2f4c122315b6ceb7c644f217"; logging-data="1186330"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/EFCwKwPAvRe1j3la+yATN" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:ySih+wwX49s6tgnx3ngh7T+Wt0M= sha1:ApLr3eYiBYJ27zSkudDdn1kMy+8= Xref: csiph.com comp.lang.c++:85982 Mike Terry writes: > On 18/08/2022 16:29, Scott Lurndal wrote: >> Muttley@dastardlyhq.com writes: >>> On Thu, 18 Aug 2022 09:58:59 +0200 >> >>>> As far as I understood that was exactly what they where aiming for. >>>> >>>> Thanks for the precedence heads-up. >>> >>> If in doubt just use brackets. They're free. >> Parentheses work even better. Unless bracket [] is UK >> for parentheses ()? >> > > I would describe both () and [] as types of brackets (round and square > respectively, with round being assumed if unqualified). > > I'm a UK person. Wikipedia suggests "In most English-speaking > countries, an unqualified 'bracket' refers to the round bracket; in > the United States, the square bracket.". Probably the C++ standards > specify the correct C++ terms? In my version of US English, (these) are parentheses (or parens if I'm in a hurry), [these] are brackets, {these} are braces, and are angle brackets. I never refer to (these) as brackets. But I'm aware that usage differs. I think that (parentheses), [square brackets], {curly braces}, and (or less-than greater-than) are unambiguous. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */