× 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.



James Rich wrote:

It is interesting to me that RPG lacks such a vast library of code to draw from. It often seems to me that RPG developers want IBM to create a BIF for them instead of creating themselves a collection of service programs analogous to the rich collection of C libraries. Why is %len a BIF instead of simply calling a service program that exports len()? Why any of the BIFs? Wouldn't it make more sense to have them all as service programs and call them using the normal subprocedure call?


Some RPG BIFs could be duplicated by procedures, but most of them take advantage of the compiler's knowledge of the operands. It wouldn't be that hard to write a len() procedure for varying length operands, but it would be pretty much impossible to write a len() procedure for numeric operands.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.