|
Doesn't APL have a "latent procedure"? > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] > On Behalf Of Bartell, Aaron L. (TC) > Sent: Tuesday, January 13, 2004 1:54 PM > To: 'RPG programming on the AS400 / iSeries' > Subject: RE: *INZSR - I still love you!!! > > <Cozzi> > Having said that, if I could walking in someone else's shoes for a moment > and suppose I was using another language (primarily) and not familiar with > RPG, then yes, *INZSR would present an interesting learning curve to me. > </Cozzi> > > RPG isn't the only language that has initialize type functions that only > execute the first time they are called. When I was programming Java > Servlets awhile ago I used a init method to create a pool of iSeries > connections. I only wanted that to execute when the Java class was first > loaded by Tomcat and the init methods were my ticket. I am sure there are > many other languages out there with the same thing. Constructors (in any > language) would also be a comparable to *INZSR. . . > > To put it short *INZSR adds functionality to RPG. If you need it you can > use it, but make just make sure you understand how it works and you will be > set (like Cozzi said). > > Maybe *INZSR is the poor mans constructor ;-) > > Aaron Bartell > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Bob cozzi > Sent: Tuesday, January 13, 2004 12:39 PM > To: 'RPG programming on the AS400 / iSeries' > Subject: RE: *INZSR - I still love you!!! > > > Tony, > I'd have to both agree and disagree with this one. > I think the use of the *INZSR was very viable in RPGIII and is still viable > today with RPG IV. > I've never bought into the notion that just because you can't see the code > in front of you, the feature shouldn't be used. This is the kind of excuse I > hear all the time when I ask people why they avoid /COPY like the plague. > Having said that, if I could walking in someone else's shoes for a moment > and suppose I was using another language (primarily) and not familiar with > RPG, then yes, *INZSR would present an interesting learning curve to me. I > would probably spend hours (days?) trying to figure out what the heck was > going on.... But then I'd learn *INZSR and its function and I'd be set for > the rest of my career. > > > Bob Cozzi > Cozzi Consulting > www.rpgiv.com > > > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] > On Behalf Of CarollaT@xxxxxxxxxxxxxx > Sent: Tuesday, January 13, 2004 12:16 PM > To: rpg400-l@xxxxxxxxxxxx > Subject: Re: *INZSR - I still love you!!! > > IMHO, if there are tasks that need to be done at the beginning of the task > at hand, I simply code them at the beginning of the C-specs. Perhaps this > is because I don't rely on the eternal repeating of the entirety of the > C-specs. > > I could see the enhanced 'neatness' of moving these 'initialization' items > to a subroutine, but beyond that, *INZSR simply adds to the 'mystique' of > the program, by not having to EXSR that initialization subroutine. At a > glance, it forces you to first look towards the bottom of the code, or > search for the *INZSR text to see the program flow. > > Just my opinion. Take it or leave it. > > Tony Carolla > MedAmerica Billing Services, Inc. > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list > To post a message email: RPG400-L@xxxxxxxxxxxx > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/mailman/listinfo/rpg400-l > or email: RPG400-L-request@xxxxxxxxxxxx > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l.
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.