Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6080
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ben Bacarisse <ben.usenet@bsb.me.uk> |
| Newsgroups | comp.programming |
| Subject | Re: Here is why C++ and C are bad... |
| Date | Wed, 30 Dec 2015 15:48:42 +0000 |
| Organization | A noiseless patient Spider |
| Lines | 31 |
| Message-ID | <87h9j06ip1.fsf@bsb.me.uk> (permalink) |
| References | <n5kdn4$cji$1@dont-email.me> <n5uqdd$gin$1@dont-email.me> <n5v0di$7i3$1@dont-email.me> <n5v0p5$8s3$1@dont-email.me> <n6063m$ccb$1@dont-email.me> <n60m14$lf$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain |
| Injection-Info | mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="30951"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+CPZPpe4zAVxlUeoC6cpSUG029360LXPw=" |
| Cancel-Lock | sha1:pT3/FA+Cjv241Om/l4se+QZGDkQ= sha1:xa/fUiQz/YdOmngDEC1C61V3nyU= |
| X-BSB-Auth | 1.ac697cbb640a947324e8.20151230154842GMT.87h9j06ip1.fsf@bsb.me.uk |
| Xref | csiph.com comp.programming:6080 |
Show key headers only | View raw
Richard Heathfield <rjh@cpax.org.uk> writes: > On 30/12/15 08:56, David Brown wrote: >> On 29/12/15 23:19, Richard Heathfield wrote: > > <snip> > >>> 2) mixing of signed and unsigned expressions is very often a sign that >>> the program hasn't been thought through properly. This, too, is (I >>> think) a discussion that might also turn out to be profitable, despite >>> its origins. >> >> Perhaps that could usefully be discussed here, since it is an issue that >> can affect many languages. > > Oddly, the signed/unsigned dilemma is one that can bite us even if we > are only dealing exclusively (or so we think) with unsigned > values. Since this is comp.programming, you should perhaps have said that mixing signed and unsigned expressions _in C_ is often a bad sign. It may be in other languages too, but there are others in which it is both common and harmless. The points you go on to make are about problems in the way C defines the behaviour of such mixed-type expressions -- they aren't programming problems per se. <snip> -- Ben.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-29 20:31 +0000
Re: Here is why C++ and C are bad... Kaz Kylheku <kaz@kylheku.com> - 2015-12-29 21:20 +0000
Re: Here is why C++ and C are bad... David Brown <david.brown@hesbynett.no> - 2015-12-29 23:13 +0100
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-29 22:19 +0000
Re: Here is why C++ and C are bad... David Brown <david.brown@hesbynett.no> - 2015-12-30 09:56 +0100
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-30 13:28 +0000
Re: Here is why C++ and C are bad... David Brown <david.brown@hesbynett.no> - 2015-12-30 14:55 +0100
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 16:32 +0000
Re: Here is why C++ and C are bad... David Brown <david.brown@hesbynett.no> - 2015-12-30 18:17 +0100
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 20:01 +0000
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 15:48 +0000
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-30 16:35 +0000
Re: Here is why C++ and C are bad... David Brown <david.brown@hesbynett.no> - 2015-12-30 18:19 +0100
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-30 17:39 +0000
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 20:26 +0000
Re: Here is why C++ and C are bad... "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> - 2015-12-30 18:32 +0100
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 19:55 +0000
Re: Here is why C++ and C are bad... Richard Heathfield <rjh@cpax.org.uk> - 2015-12-30 20:15 +0000
Re: Here is why C++ and C are bad... Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-30 22:00 +0000
Re: Here is why C++ and C are bad... Ian Collins <ian-news@hotmail.com> - 2015-12-31 10:16 +1300
csiph-web