Deutsch English Français Italiano |
<20250212132107.00001351@gmail.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: John Ames <commodorejohn@gmail.com> Newsgroups: comp.os.linux.misc,comp.os.linux.advocacy Subject: Re: GIMP 3.0.0-RC1 Date: Wed, 12 Feb 2025 13:21:07 -0800 Organization: A noiseless patient Spider Lines: 31 Message-ID: <20250212132107.00001351@gmail.com> References: <vkjmdg$30kff$1@dont-email.me> <vl9449$3vo6h$3@dont-email.me> <vl9aov$pp7$1@dont-email.me> <vla4hr$5n4v$1@dont-email.me> <vlblqj$harb$1@dont-email.me> <lttopaFoh2cU8@mid.individual.net> <vle8uk$12sii$2@dont-email.me> <c686fb74-4fac-0809-7005-417c76ee0e3b@example.net> <nbReP.633803$oR74.271654@fx16.iad> <NnVeP.44028$vfee.11890@fx45.iad> <vo6ubb$3ue2q$2@dont-email.me> <RhOdnY5Kb8vulDr6nZ2dnZfqnPudnZ2d@earthlink.com> <vo7lp6$25uo$2@dont-email.me> <655acbf6-05e5-69ff-8a44-9f7075aafa2e@example.net> <ddNpP.567620$iNI.244105@fx14.iad> <m0pqs3ForauU2@mid.individual.net> <g9qcnUmy1pxdrTX6nZ2dnZfqnPqdnZ2d@earthlink.com> <m0r59mFrbnU1@mid.individual.net> <yn0qP.587031$iNI.359829@fx14.iad> <VtWdnaJY5fz99zT6nZ2dnZfqnPudnZ2d@earthlink.com> <20250210093054.00001375@gmail.com> <vofgo6$1p8fn$1@dont-email.me> <KwSdnd_yRPwhvjH6nZ2dnZfqnPidnZ2d@earthlink.com> <20250212081704.00003ce1@gmail.com> <slrnvqq09r.38buj.candycanearter07@candydeb.host.invalid> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Wed, 12 Feb 2025 22:21:23 +0100 (CET) Injection-Info: dont-email.me; posting-host="fffcf245ee17c3432c24c991a40e9a2a"; logging-data="2642002"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cnoEWAgkrCEmFASew94JEzQqNdinCwm4=" Cancel-Lock: sha1:FfferyrjJzLrT+Zk+7tq3txLGa4= X-Newsreader: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) Bytes: 3445 On Wed, 12 Feb 2025 20:20:04 -0000 (UTC) candycanearter07 <candycanearter07@candycanearter07.nomail.afraid> wrote: > If you really need to, you can also pass by pointer? I admit I'm not deeply familiar with this, but AFAICT Pascal pointers enforce type-safety as defined by the rest of the language, meaning that (IIUC) you can pass a function that expects a pointer to an ARRAY [1..10] OF CHAR any given ARRAY [1..10] OF CHAR, but trying to give it a pointer to an ARRAY [1..15] OF CHAR would still be a type mismatch. So what do you do, then? Refactor the function to accept a pointer to a single CHAR? Add individual wrapper functions to decompose arrays of specific sizes into individual elements, and call the actual function once per element? What if the function logic can't be serialized across individual elements? The whole thing is just braindead. C makes you do all the fancy footwork yourself if you want to support arrays of arbitrary size, but it'll at least let you *do* it; other languages like Basic or Python provide a UBound() function or for-each construct so that you can do the same thing safely and simply (if at a slight performance penalty.) Pascal (as Wirth designed it) forces you through all the rigamarole of the former without giving you the attendant flexibility, even though it already *knows* the sizes of arrays and could just as easily provide the latter. Truly demented, and worthy of a place in the B&D hall-o'-shame all by itself.