Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #77110

Re: should c be a subset of c++?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: should c be a subset of c++?
Date Tue, 24 Nov 2015 09:09:48 -0800
Organization None to speak of
Lines 18
Message-ID <lnvb8r1fz7.fsf@kst-u.example.com> (permalink)
References <87mvx2b2q2.fsf@bsb.me.uk> <d3675375-2cf3-49b4-9c65-e81fa63101d3@googlegroups.com> <mshl7g$v7p$1@dont-email.me> <d53fviF9nfaU1@mid.individual.net> <0c365ef8-ec2d-4617-b0f5-0a13acc4feba@googlegroups.com> <29c78bf7-83d1-4497-b9c5-bee6b774f5ad@googlegroups.com> <MPG.30a70a76a54eae5a989c28@news.eternal-september.org> <fd444f7c-2b44-4d6c-9044-d9b0df0a66fa@googlegroups.com> <gno%x.29506$eE.13779@fx07.iad> <6f55f057-7afa-470b-b399-ff9a3b4da2ed@googlegroups.com> <5646612f.24876078@news.xs4all.nl> <n25u7b$1j2$1@speranza.aioe.org> <564ba6ac.25932250@news.xs4all.nl> <ad165bf0-7d7c-4af6-beaf-9e22322f6bf9@googlegroups.com> <lnziybh0ay.fsf@kst-u.example.com> <e84c14ad-9d11-4b42-a2d9-c505e1251449@googlegroups.com> <lnoaerfd1i.fsf@kst-u.example.com> <2c2e0fab-bb94-419c-b92c-2933340e4e16@googlegroups.com> <MPG.30bdd286eb6edd97ad@news.eternal-september.org> <4e2eb610-1853-451f-95c2-d30687ff3bd6@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Injection-Info mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="19593"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6p4x0k8S9svz0j1i0Lgl9"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock sha1:2xUPSU0Ytl8BdYjixMbpzXiRIq4= sha1:AqQS17cB4r/3VYzj89eDTwpanbU=
Xref csiph.com comp.lang.c:77110

Show key headers only | View raw


Malcolm McLean <malcolm.mclean5@btinternet.com> writes:
[...]
> There's a case for banning the lot, and not having pointer arithmetic
> other than pointer differences. You could still generate pointers
> with &array[i];
> There are just one or two places you need ptr -1, for example in a typical
> malloc() implementation where the control block is before the pointer.
>  
> If data is in an array, it makes sense to access it using array subscripts.
> If it's not in an array, pointer arithmetic is pointless.

Ok, so you don't like C.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: should c be a subset of c++? "J. Clarke" <j.clarke.873638@gmail.com> - 2015-11-06 19:06 -0500
  Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-07 00:41 -0800
    Re: should c be a subset of c++? Richard Damon <Richard@Damon-Family.org> - 2015-11-07 10:01 -0500
      Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-07 09:12 -0800
        Re: should c be a subset of c++? Martin Shobe <martin.shobe@yahoo.com> - 2015-11-07 11:58 -0600
          Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-07 10:25 -0800
            Re: should c be a subset of c++? Keith Thompson <kst-u@mib.org> - 2015-11-07 11:54 -0800
              Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-07 14:22 -0800
                Re: should c be a subset of c++? Martin Shobe <martin.shobe@yahoo.com> - 2015-11-08 13:05 -0600
                Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-08 11:39 -0800
                Re: should c be a subset of c++? Geoff <geoff@invalid.invalid> - 2015-11-13 13:20 -0800
                Re: should c be a subset of c++? James Kuyper <jameskuyper@verizon.net> - 2015-11-13 16:36 -0500
                Re: should c be a subset of c++? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-14 00:03 +0000
                Re: should c be a subset of c++? Geoff <geoff@invalid.invalid> - 2015-11-13 17:06 -0800
                Re: should c be a subset of c++? Geoff <geoff@invalid.invalid> - 2015-11-13 13:29 -0800
            Re: should c be a subset of c++? Martin Shobe <martin.shobe@yahoo.com> - 2015-11-08 12:57 -0600
              Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-08 11:37 -0800
                Re: should c be a subset of c++? Keith Thompson <kst-u@mib.org> - 2015-11-08 17:16 -0800
                Re: should c be a subset of c++? supercat@casperkitty.com - 2015-11-08 18:19 -0800
                Re: should c be a subset of c++? Martin Shobe <martin.shobe@yahoo.com> - 2015-11-08 23:25 -0600
                Re: should c be a subset of c++? Gareth Owen <gwowen@gmail.com> - 2015-11-10 22:34 +0000
        Re: should c be a subset of c++? raltbos@xs4all.nl (Richard Bos) - 2015-11-13 22:18 +0000
          Re: should c be a subset of c++? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-14 00:11 +0000
            Re: should c be a subset of c++? raltbos@xs4all.nl (Richard Bos) - 2015-11-17 22:16 +0000
              Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-17 21:09 -0800
                Re: should c be a subset of c++? Richard Heathfield <rjh@cpax.org.uk> - 2015-11-18 05:22 +0000
                Re: should c be a subset of c++? Keith Thompson <kst-u@mib.org> - 2015-11-18 06:03 -0800
                Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-18 08:44 -0800
                Re: should c be a subset of c++? Keith Thompson <kst-u@mib.org> - 2015-11-18 09:11 -0800
                Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-18 09:54 -0800
                Re: should c be a subset of c++? Philip Lantz <prl@canterey.us> - 2015-11-24 01:49 -0800
                Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-24 02:58 -0800
                Re: should c be a subset of c++? raltbos@xs4all.nl (Richard Bos) - 2015-11-24 11:58 +0000
                Re: should c be a subset of c++? Keith Thompson <kst-u@mib.org> - 2015-11-24 09:09 -0800
                Re: should c be a subset of c++? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-11-25 00:12 -0800
                Re: should c be a subset of c++? glen herrmannsfeldt <gah@ugcs.caltech.edu> - 2015-11-25 12:35 +0000
                Re: should c be a subset of c++? raltbos@xs4all.nl (Richard Bos) - 2015-11-27 16:30 +0000
                Re: should c be a subset of c++? raltbos@xs4all.nl (Richard Bos) - 2015-11-19 10:37 +0000
                Re: should c be a subset of c++? Tim Rentsch <txr@alumni.caltech.edu> - 2015-11-20 15:40 -0800
  Re: should c be a subset of c++? Gareth Owen <gwowen@gmail.com> - 2015-11-10 22:20 +0000

csiph-web