Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: alt.folklore.computers,comp.os.linux.misc Subject: Re: The joy of FORTRAN Date: 4 Mar 2025 06:25:39 GMT Lines: 14 Message-ID: References: <794451758.762727703.370029.peter_flass-yahoo.com@news.eternal-september.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net 15WQOad/sR75YQ2qdN4zAwgYu5yxtiyyF4p3oDkJSXE03MTSCO Cancel-Lock: sha1:lvp0jkH5RWEiTry50G8HeFW1qyQ= sha256:XSLQyNSuf3UNqM4KyV65gPdowrfHV2XZrcKKq8GVedU= User-Agent: Pan/0.160 (Toresk; ) Xref: csiph.com alt.folklore.computers:230318 comp.os.linux.misc:66012 On Mon, 3 Mar 2025 23:02:44 -0500, c186282 wrote: > It's easy to kinda drift into that during development, you always > think of ONE more thing you need to pass. However stage two, you put > all that crap in a struct and pass one pointer. Each function can > extract what it needs from that struct and ignore the rest. I never made it to anywhere close to 60 parameters. We did have one utility that took 22 command line parameters but it was never meant to be invoked manually and came with a csh. Even then they all were stuffed into a struct before the real function was called. Even worse, the parameters were field widths in a positional record. I truly hate positional records but the damn things live on.