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


Groups > comp.lang.c > #22695

Re: Map C++ feature to C

From BGB <cr88192@hotmail.com>
Newsgroups comp.lang.c
Subject Re: Map C++ feature to C
Date 2012-06-25 11:36 -0500
Organization albasani.net
Message-ID <jsa46r$dn$1@news.albasani.net> (permalink)
References <js6ip6$qb1$1@speranza.aioe.org> <54650c61-f6ea-47ce-9c72-c9083832b2e1@n5g2000vbb.googlegroups.com> <js8mp2$khc$1@speranza.aioe.org> <slrnjugfl7.rk7.grahn+nntp@frailea.sa.invalid>

Show all headers | View raw


On 6/25/2012 5:34 AM, Jorgen Grahn wrote:
> On Mon, 2012-06-25, Leo Havmøller wrote:
>>> Why would you want to do that? If you want to write C++ code, there is
>>> an excellent language for that - it is called C++. Much better than
>>> some half-arsed attempt to simulate it in C.
>>
>> Because C++ may not be allowed (e.g. linux kernel mode) or available (e.g.
>> linux IAD) for the target platform.
>
> If C++ is disallowed, half-arsed simulations should be, too.
> Especially simulations of tricky features like run-time polymorphism.
>
> (Note: I'm not arguing against all uses of function pointers. Just
> against unrestricted use of idioms meant to simulate C++ vtables.)
>

it depends on why it is disallowed.

it may not be due entirely to "policy", but maybe something like lack of 
a good C++ compiler, or the relative difficulty to parse C++ code (vs C) 
via custom-written tools, or interface directly between C++ and a 
scripting language (many have an easier time interfacing with C), ...

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


Thread

Map C++ feature to C zgene <nospam@nospam.com> - 2012-06-24 08:23 +0000
  Re: Map C++ feature to C Ian Collins <ian-news@hotmail.com> - 2012-06-24 21:25 +1200
    Re: Map C++ feature to C BGB <cr88192@hotmail.com> - 2012-06-24 13:39 -0500
      Re: Map C++ feature to C Ian Collins <ian-news@hotmail.com> - 2012-06-25 10:15 +1200
        Re: Map C++ feature to C BGB <cr88192@hotmail.com> - 2012-06-25 11:32 -0500
    Re: Map C++ feature to C zgene <nospam@nospam.com> - 2012-06-24 21:33 +0000
      Re: Map C++ feature to C Ian Collins <ian-news@hotmail.com> - 2012-06-25 10:12 +1200
        Re: Map C++ feature to C William Ahern <william@wilbur.25thandClement.com> - 2012-06-24 18:49 -0700
        Re: Map C++ feature to C nroberts <roberts.noah@gmail.com> - 2012-07-23 10:25 -0700
          Re: Map C++ feature to C Andrew Cooper <amc96@cam.ac.uk> - 2012-07-24 01:34 +0100
            Re: Map C++ feature to C Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-07-24 15:58 +0000
  Re: Map C++ feature to C "christian.bau" <christian.bau@cbau.wanadoo.co.uk> - 2012-06-24 11:36 -0700
    Re: Map C++ feature to C Leo Havmøller <rtxleh@nospam.nospam> - 2012-06-25 05:43 +0200
      Re: Map C++ feature to C Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-06-25 10:34 +0000
        Re: Map C++ feature to C BGB <cr88192@hotmail.com> - 2012-06-25 11:36 -0500
  Re: Map C++ feature to C Paul N <gw7rib@aol.com> - 2012-06-24 12:19 -0700
    Re: Map C++ feature to C 88888 Dihedral <dihedral88888@googlemail.com> - 2012-06-24 19:49 -0700
  Re: Map C++ feature to C aftnix <aftnix@gmail.com> - 2012-07-26 13:36 -0700

csiph-web