|
ah!! That makes sense now. What GBLRESET was a %BIF or an OPCODE instead, though? Then you wouldn't be relying upon *INLR being used properly to get the desired results. C RESET *GLOBAL or C eval %Reset(*GLOBAL) for example? --------------------------------------------------------- Booth Martin http://www.MartinVT.com Booth@xxxxxxxxxxxx --------------------------------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: 12/30/2003 1:16:43 PM To: 'RPG programming on the AS400 / iSeries' Subject: Initializing static variables > From: Booth Martin > > Are we mixing definitions here? I know of INZ, RESET, and CLEAR. There > is no REINZ keyword or opcode is there? RESET is the equivalent of reinitializing a variable. I am asking for a new keyword (I suggested *GLBREINZ, although perhaps *GLBRESET would be a more consistent name) that would reinitialize a static variable whenever the global initialization routine is called. This would allow me to reset all those variables by simply turning on *INLR. Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.