Article View: comp.lang.c.moderated
Article #2631Re: Is C/C++ convertor available ???
From: Andrew Ferrier
Date: Sat, 20 Apr 1996 18:35
Date: Sat, 20 Apr 1996 18:35
28 lines
2089 bytes
2089 bytes
In a contribution about Is C/C++ convertor available ???, ohara@tiac.ent wrote: >I DO NOT use gcc. Yet I wouldn't doubt that >there was a feature.. After all C++ is an extension to >C which is theortically an extension to itself. :) >Classes and such all boil down to structures.. Don't >ever get the idea that C++ is its own language. It goes >through a tier of translation before compilation. There is absolutely no reason why you can't convert C++ to C. I can't say I've ever heard of a convertor for the PC, but I have heard of one on the Archimedes. The only thing you would lose is the data hiding, and this wouldn't be a problem if you immediately compiled the code after the conversion. However, do say that C++ always goes through a tier of translation before compilation before being compiled puts a bit of a damper on practically all C++ compilers. No doubt there are some naughty ones which convert to C internally, but C++ compilers are much more compilcated than C compilers - although a lot of the extra C++ features - such as templates - are worked out at compile time - the compiler does have to be different to one for C. I too would be interested in a C -> C++ convertor for the PC. ----------------------------------------------------------------------- Andrew Ferrier [Spheroid] | andrewf@searchme.demon.co.uk | Team OS/2 I Program in Basic, C/C++, Assembler for the PC.
Technical Details
Message-ID:
<4lbap0$llq@solutions.solon.com>Path:
arc1-ca.pugleaf.net!solon.com!not-for-mailReferences:
<4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com> <4kg88m$ig8@solutions.solon.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail From: Andrew Ferrier <andrewf@searchme.demon.co.uk> Newsgroups: comp.lang.c.moderated Subject: Re: Is C/C++ convertor available ??? Date: 20 Apr 1996 13:35:12 -0500 Organization: Digital Solutions Sender: clc@solutions.solon.com Approved: clc@solutions.solon.com Message-ID: <4lbap0$llq@solutions.solon.com> References: <4k5vt7$a3c@solutions.solon.com> <4kcmib$ova@solutions.solon.com> <4kg88m$ig8@solutions.solon.com> Reply-To: andrewf@searchme.demon.co.uk NNTP-Posting-Host: solutions.solon.com X-NNTP-Posting-Host: searchme.demon.co.uk X-Offline-Mail/NewsReader: Tetrix Reader Plug - Unregistered - V 1.1.0