Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #103524
| From | Tim Rentsch <txr@alumni.caltech.edu> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: The C Library Reference Guide |
| Date | 2017-02-09 07:58 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <kfnh9435pac.fsf@x-alumni2.alumni.caltech.edu> (permalink) |
| References | (1 earlier) <589862a6.6370671@news.xs4all.nl> <65026461-822c-489d-bedc-3bae9787b895@googlegroups.com> <8760kndzit.fsf@bsb.me.uk> <27235191-441b-4082-bdc9-992b260e441c@googlegroups.com> <87vasnci2v.fsf@bsb.me.uk> |
Ben Bacarisse <ben.usenet@bsb.me.uk> writes: > supercat@casperkitty.com writes: > >> On Monday, February 6, 2017 at 11:01:48 AM UTC-6, Ben Bacarisse wrote: >>> supercat writes: [...] >>> Maybe. There are some real confusions in the text so maybe this detail >>> is not a big deal, but it has always struck me as odd. What is the >>> strange appeal of talking about typecasting rather than conversions >>> using a cast, or even just casting? What makes it so odd is that when >>> someone is typecast they are given a role for which their appearance (or >>> some other attribute) suits them. A typecast actor must do less >>> "conversion" than normal to fit the role. A cast (when properly used) >>> often performs a conversion from a value that can't "naturally" play >>> that role. It's the exact opposite of the the right term. >> >> In the vast majority of implementations, the only casts which change >> representation > > That's an unhelpful use of words. Casts convert values. Please excuse a quibble. It's true that casts (and conversions) convert values, but there is more involved. The expressions '0' and '(unsigned) 0' have the same value (and most likely the same representation at the bit level), but they behave differently. To be fair, I should add that you may have meant 'value' in the sense of "value in a particular abstract value space", which is pretty much the same as my comment above.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The C Library Reference Guide MehdiAmini <atorrses@gmail.com> - 2017-02-06 13:35 +0330
Re: The C Library Reference Guide Barry Schwarz <schwarzb@dqel.com> - 2017-02-06 03:42 -0800
Re: The C Library Reference Guide raltbos@xs4all.nl (Richard Bos) - 2017-02-06 11:56 +0000
Re: The C Library Reference Guide supercat@casperkitty.com - 2017-02-06 06:33 -0800
Re: The C Library Reference Guide raltbos@xs4all.nl (Richard Bos) - 2017-02-06 15:17 +0000
Re: The C Library Reference Guide Jerry Stuckle <jstucklex@attglobal.net> - 2017-02-06 10:53 -0500
Re: The C Library Reference Guide supercat@casperkitty.com - 2017-02-06 08:32 -0800
Re: The C Library Reference Guide Jerry Stuckle <jstucklex@attglobal.net> - 2017-02-06 11:47 -0500
Re: The C Library Reference Guide Malcolm McLean <malcolm.mclean5@btinternet.com> - 2017-02-06 09:01 -0800
Re: The C Library Reference Guide Barry Schwarz <schwarzb@dqel.com> - 2017-02-06 11:26 -0800
Re: The C Library Reference Guide Robert Wessel <robertwessel2@yahoo.com> - 2017-02-06 16:26 -0600
Re: The C Library Reference Guide Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-02-06 17:01 +0000
Re: The C Library Reference Guide supercat@casperkitty.com - 2017-02-06 09:45 -0800
Re: The C Library Reference Guide Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-02-06 18:03 +0000
Re: The C Library Reference Guide supercat@casperkitty.com - 2017-02-06 10:45 -0800
Re: The C Library Reference Guide Tim Rentsch <txr@alumni.caltech.edu> - 2017-02-09 07:58 -0800
Re: The C Library Reference Guide raltbos@xs4all.nl (Richard Bos) - 2017-02-06 20:43 +0000
Re: The C Library Reference Guide supercat@casperkitty.com - 2017-02-06 13:22 -0800
Re: The C Library Reference Guide raltbos@xs4all.nl (Richard Bos) - 2017-02-06 22:17 +0000
Re: The C Library Reference Guide Noob <root@127.0.0.1> - 2017-02-06 16:15 +0100
Re: The C Library Reference Guide luser droog <luser.droog@gmail.com> - 2017-02-06 10:34 -0800
Re: The C Library Reference Guide Tim Rentsch <txr@alumni.caltech.edu> - 2017-02-08 22:14 -0800
Re: The C Library Reference Guide Keith Thompson <kst-u@mib.org> - 2017-02-09 09:32 -0800
csiph-web