Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Distributing C as headers. Date: Mon, 28 Jan 2019 11:16:43 -0800 Organization: None to speak of Lines: 22 Message-ID: References: <3719d4fa-cf75-4a85-9255-b3f961a649c1@googlegroups.com> <5c4b5064$0$21586$426a74cc@news.free.fr> <1bh8dw2l5r.fsf@pfeifferfamily.net> <5c4c1691$0$21610$426a74cc@news.free.fr> <1bwomr17cp.fsf@pfeifferfamily.net> <%Hr3E.90867$nC1.33629@fx04.am4> <87bm41vb3k.fsf@bsb.me.uk> <10t3E.125278$9A2.93679@fx09.am4> <8736pdv80w.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="6e9d60f1a86f6adea14a7c4a73c06923"; logging-data="8736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+b1ZhSY92pGegoNsoi1G9n" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:o0XHabpXzNW4OtnQ0AjWV5Bmftc= sha1:OprORtxiZu+OgGb+O668Ukz0sZg= Xref: csiph.com comp.lang.c:140364 David Brown writes: > On 28/01/2019 12:21, Pascal J. Bourguignon wrote: [...] >> Part of the point that you could avoid using pointer in non-C >> programming languages. There are constructs such as passing arguments >> by reference, or using opaque objects (such as string) instead of bare >> pointers to characters with some missing attribute such as allocated >> size or length that must be passed on the side, which is propice to >> errors, and ultimately crashes. [...] > Since you talk about "C programming languages" plural, are you including > C++ ? In C++ you can pass by reference, make classes such as string, > etc. - and you can get a result that is both faster and safer than with > Pascal. He referred to "non-C programming languages, meaning all languages other than C. He didn't mention "C programming languages". -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */