Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #144672
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <kst-u@mib.org> |
| Newsgroups | comp.lang.c |
| Subject | Re: "Conversions" of types |
| Date | Sun, 09 Jun 2019 11:44:50 -0700 |
| Organization | None to speak of |
| Lines | 26 |
| Message-ID | <lnsgsir42l.fsf@kst-u.example.com> (permalink) |
| References | <type-conversions-20190609114030@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Injection-Info | reader02.eternal-september.org; posting-host="fdf5fda0e711fff71bd085244104dd86"; logging-data="22167"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ARRMKH9EPP37hl+k/cfBC" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
| Cancel-Lock | sha1:CH1n80g5p/z7UCZzCxG+m5Q/i5I= sha1:5KnBkoY1PcFsmscopQZXczPvn+w= |
| Xref | csiph.com comp.lang.c:144672 |
Show key headers only | View raw
ram@zedat.fu-berlin.de (Stefan Ram) writes:
> |Any pointer type may be converted to an integer type.
> N2310, 6.3.2.3p6
>
> If this is true, then may I ask: Which integer type
> is the result of the conversion of the pointer type
> »double *« to an integer type?
>
> Don't they mean:
>
> Any /value of/ an expression of pointer type may be
> converted to a /value of/ an integer type.
Yes.
> ? Or does it really make sense to say that a /type/
> can be converted to another type?
No. The wording in the standard is slightly informal. The intent is
clear enough that I don't have a problem with it, though I wouldn't
mind if it were changed to refer to values.
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread
Re: "Conversions" of types Keith Thompson <kst-u@mib.org> - 2019-06-09 11:44 -0700
Re: "Conversions" of types unidef <jon@unidef-systems.com> - 2019-06-10 04:16 -0500
Re: "Conversions" of types Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2019-06-10 03:27 -0700
Re: "Conversions" of types David Brown <david.brown@hesbynett.no> - 2019-06-10 13:24 +0200
Re: "Conversions" of types Keith Thompson <kst-u@mib.org> - 2019-06-10 14:00 -0700
csiph-web