× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



has valuable additional features as local variables and parameters and
prototypes for the compiler to check if your call could have a chance to
succeed - so I clearly recommend to use procedures and forget subroutines
(for all your newly written stuff).

But not if your programmer uses procedures with prototyping but only passes
pointers and sometimes lengths fields as parameters, but does not document
on what the pointer has to point nor ever checks the incoming data or
length.
... just fighting with such programs and procedures!

BTW: Prototypes are another example for doing things not consequently by
the developers of RPG.
There are languages out there only needing PIs and no PRs.

With Release 7.1 you can at least omit the prototypes for your internal
procedures.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von dieter.bender@xxxxxxxxxxxx
Gesendet: Tuesday, 28. September 2010 18:19
An: RPG programming on the IBM i / System i
Betreff: Re: Convert from free to fixed

... interesting, you are a clairvoyant, seeing what other persons are
thinking...

IMHO RPG has sometimes diffrent features, doing similar things and good
style is not to use all, what's available, but the most powerful lfeature of

each category. For instance error handling: you have:
- error indicators in fixed format
- e extenders in free format
- ile condition handlers
- *pssr
- monitor groups
-... maybe I'm overlooking something, I didn't see in > 20 years RPG
comparing this alternatives, monitor is the most powerfull of all and
contains all possibilities the other have and some valuable too (arbitrary
blocks, grouping of conditions), so I clearly recommend to use this and only

this!!!

Another example:
in RPG you have Subroutines and Procedures a procedure could do all, a
subroutine does and has valuable additional features as local variables and
parameters and prototypes for the compiler to check if your call could have
a chance to succeed - so I clearly recommend to use procedures and forget
subroutines (for all your newly written stuff). BTW: Prototypes are another
example for doing things not consequently by the developers of RPG. There
are languages out there only needing PIs and no PRs.

D*B

--------------------------------------------------
From: "Scott Klement" <rpg400-l@xxxxxxxxxxxxxxxx>
Sent: Tuesday, September 28, 2010 5:30 PM
To: "RPG programming on the IBM i / System i" <rpg400-l@xxxxxxxxxxxx>
Subject: Re: Convert from free to fixed

Hi Vern,

Nothing wrong with it - some think tried and true techniques should
never be used, just because they aren't their hottest new thing.

Frankly, that's not a common problem in the RPG community.

A much more common problem is to use old, clumsy, outdated techniques
just because folks are used to them. RPG programmers almost always hang
on to outdated techniques long after better ones arrive, just because
"we've always done it that way."

--
This is the RPG programming on the IBM i / System i (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 thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.