From mboxrd@z Thu Jan 1 00:00:00 1970 From: scj@yaccman.com (Steve Johnson) Date: Sat, 12 Aug 2017 22:27:09 -0700 Subject: [TUHS] origin of string.h and ctype.h In-Reply-To: Message-ID: <69d306adcac795596fda674fd82ec5f2fc975884@webmail.yaccman.com> A little Googling shows that the IF I mentioned was called the "arithmetic IF".   There was also a Computed GOTO that branched to one of N labels depending on the value of the expression.   And an Assigned GOTO whose main use, as I remember, was to allow for error recovery when a subroutine failed... Steve  ----- Original Message ----- From: "Dave Horsfall" To:"The Eunuchs Hysterical Society" Cc: Sent:Sun, 13 Aug 2017 14:26:53 +1000 (EST) Subject:Re: [TUHS] origin of string.h and ctype.h On Sat, 12 Aug 2017, Steve Johnson wrote: > Don't have much to add except to note that early FORTRANs had a version > of IF that took three statement numbers and did a (gasp) GOTO to the > first if the expression in the IF was negative, to the second if it was > 0, and to the third if it was positive.   And some mainframes had an > instruction that did exactly that as well... Wasn't that the computed GOTO? -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer." -------------- next part -------------- An HTML attachment was scrubbed... URL: