On Sun, 7 Feb 2021 19:04:16 +0000 "Gibney, Dave" <[email protected]> wrote:
:>REFR means reloadable without changing function or behavior :>RENT means multiple users without changing function or behavior, :>Classic "bad" code :>IF address = 0 :> Determine and store address :>End-if :>Branch to address :>When refreshed, the address has to be redetermined, but program still works :>And, RENT only sets it once when first encountered. But, program works the same for all callers :>I didn't write it, but one of our interface routines to Adabas has done this for more than 40 years. Which is similar what I wrote: "Only possible if it modifies itself but pays no attention to the modified area" I guess you can add the case where the value calculated will always calculate to the exact same value, such as an address in the module or the value of a name/token, where if it is not set, check if it exists and restore it. :>> -----Original Message----- :>> From: IBM Mainframe Discussion List <[email protected]> On :>> Behalf Of Binyamin Dissen :>> Sent: Sunday, February 07, 2021 10:40 AM :>> To: [email protected] :>> Subject: Re: LINK vs LOAD/CALL :>> On Sun, 7 Feb 2021 16:52:55 +0000 Seymour J Metz <[email protected]> :>> wrote: :>> :>Second, you can write code that is reentrant and refreshable, modifies :>> itself ....... :>> Only possible if it modifies itself but pays no attention to the modified :>> area. :>> Not really relevant. -- Binyamin Dissen <[email protected]> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
