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



Steve Richter wrote:
the specific feature I have in mind is the object encapsulation of program variables and the use of references to access those variables.

Mark S. Waterbury wrote:
If I understand what you are saying, you can do this now and it's not that hard. Create a service program that has "private data" with several procedures (getter and setter methods) to manipulate the private data managed by the service program (which represents an "object" in OO programming). You can do this in ILE RPG IV or even COBOL as well as C or C++.

If you are interested in a concrete example, I wrote an article for MC Press Online for which I implemented a hash table as a service program. It's far from perfect, but I think it illustrates reasonably well what Mark describes above. See http://tinyurl.com/2o6hpt or http://www.mcpressonline.com/december-5-2007-vol-6-issue-22/tips-techniques/rpg/techtip-create-hash-tables-in-rpg-with-the-dictionary-adt.html

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.