Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | BartC <bc@freeuk.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Slightly OT but interesting for those who want modern C on windows |
| Date | 2015-11-20 12:13 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <n2n2ll$p53$1@dont-email.me> (permalink) |
| References | <d9039rFuctcU5@mid.individual.net> <d90e6hFnog4U1@mid.individual.net> <564ef6ef.508140@news.xs4all.nl> <n2mv6n$d6u$1@dont-email.me> <6c6d00c8-aaa6-4bab-83b5-a77456ac2a0a@googlegroups.com> |
On 20/11/2015 11:31, Rick C. Hodgin wrote: > Bartc wrote: >> (*(p)->iptr)=(*(p)->iptr) & (~mask) | (q->value & mask); > > Why the () around *(p)->iptr to the left of = ? Just extra insurance. > And is it (*p)->iptr, or *(p->iptr) or ... ? Actually, I don't know what they mean! By experimenting (via adding and removing parentheses and seeing if it still compiles), I can see that: *(p)->iptr means the same as *(p->iptr). But (*p)->iptr is something different. (*p yields a 'rec' type, for which -> is not appropropriate_ I can understand now why people want to simplify this stuff. (In the original source, it's just: p^.iptr^ No parentheses needed and you just read it left to right. ^ is a postfix dereference operator.) -- Bartc
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Slightly OT but interesting for those who want modern C on windows Ian Collins <ian-news@hotmail.com> - 2015-10-24 13:56 +1300
Re: Slightly OT but interesting for those who want modern C on windows Cal Dershowitz <Cal@example.invalid> - 2015-10-23 21:02 -0700
Re: Slightly OT but interesting for those who want modern C on windows jacobnavia <jacob@jacob.remcomp.fr> - 2015-10-24 17:43 +0200
Re: Slightly OT but interesting for those who want modern C on windows Keith Thompson <kst-u@mib.org> - 2015-10-24 13:08 -0700
Re: Slightly OT but interesting for those who want modern C on windows jacobnavia <jacob@jacob.remcomp.fr> - 2015-10-25 09:23 +0100
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 08:31 +0000
Re: Slightly OT but interesting for those who want modern C on windows jacobnavia <jacob@jacob.remcomp.fr> - 2015-10-25 12:13 +0100
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 13:23 +0000
Re: Slightly OT but interesting for those who want modern C on windows Robert Wessel <robertwessel2@yahoo.com> - 2015-10-25 13:52 -0500
Re: Slightly OT but interesting for those who want modern C on windows James Kuyper <jameskuyper@verizon.net> - 2015-10-25 11:08 -0400
Re: Slightly OT but interesting for those who want modern C on windows Keith Thompson <kst-u@mib.org> - 2015-10-25 12:14 -0700
Re: Slightly OT but interesting for those who want modern C on windows Bartc <bc@freeuk.com> - 2015-10-25 19:35 +0000
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 20:10 +0000
Re: Slightly OT but interesting for those who want modern C on windows Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-25 16:29 -0400
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 20:51 +0000
Re: Slightly OT but interesting for those who want modern C on windows Gareth Owen <gwowen@gmail.com> - 2015-10-25 20:55 +0000
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 20:59 +0000
Re: Slightly OT but interesting for those who want modern C on windows Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-25 17:24 -0400
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 21:53 +0000
Re: Slightly OT but interesting for those who want modern C on windows Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-25 18:02 -0400
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 22:11 +0000
Re: Slightly OT but interesting for those who want modern C on windows Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-10-26 03:01 -0700
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-26 10:21 +0000
Re: Slightly OT but interesting for those who want modern C on windows Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-10-26 03:31 -0700
Re: Slightly OT but interesting for those who want modern C on windows Bartc <bc@freeuk.com> - 2015-10-25 20:31 +0000
Re: Slightly OT but interesting for those who want modern C on windows Keith Thompson <kst-u@mib.org> - 2015-10-25 13:44 -0700
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-25 20:58 +0000
Re: Slightly OT but interesting for those who want modern C on windows James Kuyper <jameskuyper@verizon.net> - 2015-10-25 17:09 -0400
Re: Slightly OT but interesting for those who want modern C on windows Ian Collins <ian-news@hotmail.com> - 2015-10-26 10:44 +1300
Re: Slightly OT but interesting for those who want modern C on windows Keith Thompson <kst-u@mib.org> - 2015-10-25 13:32 -0700
Re: Slightly OT but interesting for those who want modern C on windows Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-10-26 02:46 -0700
Re: Slightly OT but interesting for those who want modern C on windows Richard Heathfield <rjh@cpax.org.uk> - 2015-10-26 10:20 +0000
Re: Slightly OT but interesting for those who want modern C on windows raltbos@xs4all.nl (Richard Bos) - 2015-11-20 10:41 +0000
Re: Slightly OT but interesting for those who want modern C on windows BartC <bc@freeuk.com> - 2015-11-20 11:14 +0000
Re: Slightly OT but interesting for those who want modern C on windows "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-11-20 03:31 -0800
Re: Slightly OT but interesting for those who want modern C on windows BartC <bc@freeuk.com> - 2015-11-20 12:13 +0000
Re: Slightly OT but interesting for those who want modern C on windows Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-11-20 14:28 +0000
Re: Slightly OT but interesting for those who want modern C on windows BartC <bc@freeuk.com> - 2015-11-20 14:47 +0000
Re: Slightly OT but interesting for those who want modern C on windows "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2015-11-20 07:13 -0800
Re: Slightly OT but interesting for those who want modern C on windows Tim Prince <tprince@computer.org> - 2015-11-20 07:54 -0500
Re: Slightly OT but interesting for those who want modern C on windows Tim Prince <tprince@computer.org> - 2015-11-20 09:35 -0500
csiph-web