Article View: comp.lang.c
Article #481Re: AVL tree insertion - programming exercise
From: Dan Cross
Date: Sat, 17 Oct 2026 18:10
Date: Sat, 17 Oct 2026 18:10
35 lines
2704 bytes
2704 bytes
In article <86h5ikpd2n.fsf@linuxsc.com>, Tim Rentsch <tr.17687@z991.linuxsc.com> wrote: >[snip] >Regarding the discussion in N2293, I'm sorry to say that either the >author is not too bright or he just didn't have his Wheaties that >morning. He reads the words but he doesn't understand the meaning. >A fair guess is that he made two common mistakes: one, he didn't >consider the historical context, and two, he looked at passages in >isolation without taking into account a broader context. The Standard >is not meant to be read like a legal document. All the parts are >expected to fit together, and in deciding what a particular passage >means one needs to consider other surrounding and related passages and >how they might interact. As for the arguments about how various >implementations behave, the reasoning is backwards. It's the tail >wagging the dog. We don't judge what the C standard means based on >what implementations do; rather we decide what the C standard is >meant to say and then assess whether a proposed implementation is >conforming. The possibility of potential performance benefits does >not excuse changing the behavior required under previous C standards. >If someone thinks that's important they should use aligned_alloc(); >otherwise they should just use malloc() and know that it will behave >the way it always has. Did you actually _read_ N2293? >Bottom line: the discussion in N2293 is misguided. A technical >corrigendum should be issued, putting back the language used in C11 >and C17, and adding a footnote explaining that aligned_alloc() can be >used for any allocation whose alignment is other than the default >alignment provided by malloc(). No. - Dan C.
Technical Details
Message-ID:
<11b0dlo$5i0$1@reader2.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mailReferences:
<86ece2kppv.fsf@linuxsc.com> <11aqnp0$sb$1@reader2.panix.com> <11arlj9$2q39c$1@kst.eternal-september.org> <86h5ikpd2n.fsf@linuxsc.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.lang.c Subject: Re: AVL tree insertion - programming exercise Date: Sat, 17 Oct 2026 18:10:00 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <11b0dlo$5i0$1@reader2.panix.com> References: <86ece2kppv.fsf@linuxsc.com> <11aqnp0$sb$1@reader2.panix.com> <11arlj9$2q39c$1@kst.eternal-september.org> <86h5ikpd2n.fsf@linuxsc.com> Injection-Date: Sat, 17 Oct 2026 18:10:00 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="5696"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross)