Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C wish list Date: Sun, 24 Mar 2019 16:12:01 -0700 Organization: None to speak of Lines: 40 Message-ID: References: <18RkE.296542$DH4.255445@fx24.am4> <2J7lE.185089$1p7.119303@fx05.am4> <2PalE.135956$Ef4.37063@fx38.am4> <4BqlE.730757$RBa.544247@fx15.am4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="784bbd8fb1c90ff7036d4663e7b2295d"; logging-data="28212"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/m9JGTQCjSrc8QDG09mHL+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:9kyxzuL4w3Z3o2h1z3ohzhxaKj4= sha1:IUD4jx3qnZeimeUzlWnEWZ3+qXU= Xref: csiph.com comp.lang.c:142380 David Brown writes: > On 23/03/2019 20:41, Keith Thompson wrote: >> Bart writes: [...] >> Note that said he was confused by the syntax you used, >> ">8>". > > I parsed that as: > > >8> > > which I could not interpret. > > A bit of spacing or quotation marks would have helped. So any conclusions Bart drew based on your response to that (which constitute a large proportion of this thread) are unfounded. I parsed it (and I'm reasonably sure Bart meant it -- Bart, please correct me if I'm mistaken) as: < some expression involving x, such as x>>8 > Bart moved the goalposts. You had been discussing code using left shift, which may have undefined behavior. Bart presented (unclearly) an example involving right shift, which never has undefined behavior (unless the behavior was already defined for other reasons). Again, if Bart wants to continue discussing this, he needs to present clear examples without pseudocode and with any assumptions clearly stated. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */