Deutsch English Français Italiano |
<20240712043125.115@kylheku.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <643-408-1753@kylheku.com> Newsgroups: comp.lang.c Subject: Re: technology discussion =?UTF-8?Q?=E2=86=92?= does the world need a "new" C ? Date: Fri, 12 Jul 2024 11:52:25 -0000 (UTC) Organization: A noiseless patient Spider Lines: 40 Message-ID: <20240712043125.115@kylheku.com> References: <v66eci$2qeee$1@dont-email.me> <v6ard1$3ngh6$4@dont-email.me> <v6b0jv$3nnt6$1@dont-email.me> <87h6d2uox5.fsf@nosuchdomain.example.com> <v6d779$6rk5$2@dont-email.me> <v6e76u$c0i9$1@dont-email.me> <v6esqm$fian$2@dont-email.me> <v6f7vg$hgam$1@dont-email.me> <20240707164747.258@kylheku.com> <v6gl83$s72a$1@dont-email.me> <v6h8ao$ur1v$1@dont-email.me> <v6jhk3$1drd6$1@dont-email.me> <v6jiud$1dsjb$1@dont-email.me> <877cdur1z9.fsf@bsb.me.uk> <v6joi4$1epoj$1@dont-email.me> <871q42qy33.fsf@bsb.me.uk> <v6k6i0$1h4d3$1@dont-email.me> <87ed82p28y.fsf@bsb.me.uk> <v6m03l$1tf05$1@dont-email.me> <87r0c1nzjj.fsf@bsb.me.uk> <v6m716$1urj4$1@dont-email.me> <87ikxconq4.fsf@bsb.me.uk> <v6n8iu$24af0$1@dont-email.me> <20240711115418.00001cdf@yahoo.com> <v6oamt$2d8nn$1@dont-email.me> <v6oct4$2djgq$2@dont-email.me> <v6of96$2ekb0$1@dont-email.me> <v6ovfc$2hcpf$1@dont-email.me> <v6p4hf$2icph$1@dont-email.me> <v6qgpu$2t6p7$3@dont-email.me> <v6r33m$30grj$1@dont-email.me> Injection-Date: Fri, 12 Jul 2024 13:52:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="ce9d7750f6a622c8d90995dce7832ee4"; logging-data="3164361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+eu4MEIRg6V5tJHm85pHA3P7WOLLhqoMs=" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:BKWzFohcWyD3bvsduxP+V4SEQZU= Bytes: 3131 On 2024-07-12, Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote: > On 12.07.2024 08:00, David Brown wrote: >> [...] >> >> I can understand when someone new to C gets mixed up about how arrays >> work. > > I can't understand that if I presume that the person has read any > basic textbook about "C". Problem is that over the years there have been authors of basic textbooks about "C" who were also confused by things like this. For instance, in Herbert Schildt's "C: The Complete Reference", 3rd Ed, page 53, this can be found: /* Write 6 integers to a disk file. */ void put_rec(int rec[6], FILE *fp) { int len; len = fwrite(rec, sizeof rec, 1, fp); if(len != 1) printf("write error"); } Of course, "sizeof rec" is the size of a pointer, not likely equal to the size of an array of 6 elements. The intersection of authors who are skillful presenters of material, knowledgeable about C, and motivated to write about it has not been that large. We could add to that, "write about new C, and motivated to keep up with ISO C developments and crank out new edititons". -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca