Path: csiph.com!feeder.erje.net!2.us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Thu, 10 Nov 2016 02:06:17 -0600 From: Gareth Owen Newsgroups: comp.lang.c Subject: Re: Compiler design in C? References: <0915fef9-bb57-48b7-b98a-342f0e5ee39f@googlegroups.com> <87shr14n5b.fsf@gmail.com> <87r36k1l4w.fsf@gmail.com> <3e47c9bc-1c0a-40dc-9dc3-92e88ace6c31@googlegroups.com> <87lgwrzvqt.fsf@gmail.com> Date: Thu, 10 Nov 2016 08:06:17 +0000 Message-ID: <87lgwrdaiu.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:VQ1dwGS+Xwx+FjzEeTIAnyTcwQI= MIME-Version: 1.0 Content-Type: text/plain Lines: 29 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Z8XJPM87Ay2D06Inhkw4Dk1vJY8fTOKaCnudJtBHrCzQVe3TsSOKuy7dYNL1yRyQg4Or2INtMuieAed!HROEy7IPHKPmim5g0Cr9b+iHLpcnZ4Djfvfo9QtHbR46MKmZhjC+JUXf2UWIpw9tjpnv X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2617 Xref: csiph.com comp.lang.c:96269 Melzzzzz writes: > On 2016-11-10, Ian Collins wrote: >> On 11/10/16 08:10 PM, Melzzzzz wrote: >>> On 2016-11-10, Gareth Owen wrote: >>>> Melzzzzz writes: >>>> >>>>> On 2016-11-09, BartC wrote: >>>>>> >>>>>> But how the hell do you do it with a std::string instead? You will also >>>>>> find the function name you want to call has been 'decorated'. >>>>>> >>>>>> Actually, I think there are problems even between different C++ compilers. >>>>>> >>>>> Lack of standardized C++ ABI is what makes C prefered choice for writing >>>>> interfaces for libraries that are callable from any language... >>>> >>>> This is idiotic. C++ makes it trivial to expose exactly the same library >>>> interface as you would in C. >>> >>> Bullshit. C++ makes a way to expose *C interface* not C++ interface. >> >> Nonsense, C++ makes it trivial to expose exactly the same library >> interface as you would in C: a C interface. >> > > That is what I am saying ;) Yes, but it was also what I was saying.