|
From the start I have been using the words "object oriented" as they apply to a style or programming that is applicable to RPG. I have never understood what OO is, dont claim to, and after reading Hans's post above, still dont. People always seem to explain it, just like Hans did, by telling you what it is not, and never get around to saying what it is.
There is a style of programming that programmers can employ where data is encapsulated in an "object" and then procs which are "oriented" toward the data are called to act on the data. An RPG programmer can employ that style of programming to a degree. I have posted examples of that.
My interest in this topic is in suggesting how RPG could be improved to permit this style of programming to be more effectivly employed. Procs could be declared as members of a data struct. A data struct could possibly be declared with an "Is a" attribute which would be the equivalent of base classes in C++. Maybe there could be "property get" and "property set" members of a data struct. Not knowing the secrets of ILE, even object access operators ( struct1 >> CustMast // write a rcd to the file ) could be possible.
All of this of course will likely never happen, and if it does, it will not be released until 2005, by which time most of us will be not working as rpg programmers. The "open source the compiler" suggestion, which I concede also is pointless, is a practical way for needed enhancements to the language to find there way onto the programmers desktop.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.