Path: csiph.com!feeder.erje.net!2.eu.feeder.erje.net!newsfeed.freenet.ag!newsfeed0.kamp.net!newsfeed.kamp.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.arch Subject: Re: The freedom that give us C++ and C Date: Tue, 9 Feb 2016 22:51:06 +0200 Organization: Tidorum Ltd Lines: 42 Message-ID: References: <1cec34bc-ea7a-4e00-a8ca-80cd769e8db8@googlegroups.com> <4bed68eb-afcc-457e-a189-5f4b4bb0b913@googlegroups.com> <146532b0-c33f-483e-b8fd-fd17e337e9e4@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net Q+dTRjeIrJPsV57Uym9Y+AlQf3HoB6ASge8AFoEpCSKfZB4DmM Cancel-Lock: sha1:67GsG3Zb4f1tqI9yLnwvVG0+ZVs= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 In-Reply-To: <146532b0-c33f-483e-b8fd-fd17e337e9e4@googlegroups.com> Xref: csiph.com comp.arch:33567 On 16-02-08 23:05 , Quadibloc wrote: > C is well-known as being a two-edged sword which gives the programmer enough > rope to hang himself with should he manage to avoid impaling himself first. Nice one :-) > And that, in itself, is not bad; people need a sharp tool like K&R C for some > purposes. Even sharp tools should have comfortable, safe handles. To use C safely, it has to be wrapped with duct-tape equivalents like "lint" and other static analysers (including compilers with good warnings). > But now C has to be a subset of C++. > > And C++ adds a gargantuan layer of complexity on top of C, with all its object- > oriented features, and it's used for general programming where the freedom of > K&R C is not needed. > > An obvious reaction is that object-oriented programming should have been placed > on a more stable and appropriate foundation, like Pascal. (At one point, > programs for the Macintosh _were_ written in something called Object Pascal, > IIRC.) But for whatever reason, Microsoft did not provide Visual Modula-2 > instead of Visual C++ to aspiring Windows developers. ... > I presume the problem is that Pascal and Modula-2 are missing a few things > people have needed for writing "real" programs, and so between too much power > and too little power, there is no real choice. Ada has been a solution to that for a long time. If it isn't yet available for your target system, why not ask AdaCore to port GNAT to that target? The more people ask for it, the likelier AdaCore are to do it. Or you could collect a group of interested people with gcc knowledge and do it yourself; GNAT ports have been done as single-person projects, given an existing gcc port for the target architecture. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .