Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Ian Collins Newsgroups: comp.lang.c Subject: Re: Compiler design in C? Date: Thu, 10 Nov 2016 22:43:21 +1300 Lines: 32 Message-ID: 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> <8737izss4f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net QoquKdlmaCwB41NT/WDSCgHYfYyCRVpwdrWfHT+h/Vx9lu/fqJ Cancel-Lock: sha1:s/qYE0dqPg18dtlEkYgcNh+fcts= User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: Xref: csiph.com comp.lang.c:96274 On 11/10/16 09:07 PM, Melzzzzz wrote: > On 2016-11-10, Gareth Owen wrote: >> Melzzzzz writes: >> >>> 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. >> >> I literally don't understand what you're trying to say. >> >> "Bullshit. *repeats what I just said*" > Well, try to declare C++ object and call member function from other > language. That's why C++ supports C linkage: C is an excellent low level standard. -- Ian