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 11:30:40 -0700 Organization: None to speak of Lines: 46 Message-ID: <87mtc1be0f.fsf@nosuchdomain.example.com> References: <2_udnWeXSoEpw2P_nZ2dnZfqnPXNnZ2d@brightview.co.uk> <87r11dbg2r.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="99a9087a2f4c122315b6ceb7c644f217"; logging-data="1203463"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Z7iZIfbiXW5DFieki2j4P" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:7+qXlOBlF8HKbotT67iW9trbJ7w= sha1:kbMl5cd8QkRu3O9gNhtAc8k8WAk= Xref: csiph.com comp.lang.c++:85983 Keith Thompson writes: > 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. And for what it's worth, the Unicode names are: ( 0028;LEFT PARENTHESIS ) 0029;RIGHT PARENTHESIS [ 005B;LEFT SQUARE BRACKET ] 005D;RIGHT SQUARE BRACKET { 007B;LEFT CURLY BRACKET } 007D;RIGHT CURLY BRACKET < 003C;LESS-THAN SIGN > 003E;GREATER-THAN SIGN -- 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 */