Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c++ Subject: Re: Found a use case for `const` by value return, a shared queue Date: Mon, 06 Feb 2023 21:41:30 -0800 Organization: None to speak of Lines: 35 Message-ID: <87ilgedoc5.fsf@nosuchdomain.example.com> References: MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="4db3b9aae9ba641a7bd7c831368aa4f5"; logging-data="3619923"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+4YK5AV6ScQmFCObFoL7tR" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:Z2d4F3eTqF/hzfQPXq90tTUqNcc= sha1:MZ7dmWOS3UQSXX6jRUY/qgynkYk= Xref: csiph.com comp.lang.c++:89004 James Kuyper writes: > On 2/6/23 16:35, Scott Lurndal wrote: > ... >> I don't recall 'not', 'and' and 'or' being C++ keywords. > > Table 1 in the C++ standard lists alternatives for many tokens: > <% { > %> } > <: [ > :> ] > %: # > %:%: ## > and && > bitor | > or || > xor ^ > compl ~ > bitand & > and_eq &= > or_eq |= > xor_eq ^= > not ! > not_eq != > > These go way back - "The Design and Evolution of C++" describes them. My > copy of "The C++ Programming Language" and the first version of the C++ > standard have unfortunately both gone missing, so I can't confirm > whether they were introduced by that standard, or earlier. They're in the 1998 ISO C++ standard (2.5 [lex.digraph]). -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for XCOM Labs void Void(void) { Void(); } /* The recursive call of the void */