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



I actually reviewed the state of the thread before responding.  I agree that
ILE provides some things that are associated with OO, but I also agree with
Hans that RPG isn't ideal.  IMHO what you can do is:

Encapsulation:  You probably already do this with subroutines and dynamic
calls, but if you use sub procedures and service programs, you get better
protection against side effects from the use of global variables and forced
passing of parameters by reference.

Abstract data types and true objects:  You can't really do it, but service
programs can give you some of the features of an object.  Maybe someone else
has figured out a way to do it, but the sticking point is multiple instances
of the same object. 

Polymorphism:  You can't really do it, but you can do some things with
argument lists and operational descriptors that give you some of the same
thing with a lot more work.  

Inheritance:  Nope.

Another question, probably good for a Friday, is how useful is the object
oriented model?  I like it as a way of approching problems, but has it
revolutionized application development the way people thought it would ten
years ago, or so.  I seem to remember predictions of a whole new class of
programmers who would build applications from "boxes" of components and
write almost no code except to pass messages back and forth between the
components--all drag, drop, and connect the dots.  

> -----Original Message-----
> From: Alistair Rooney [mailto:alistairr@tbsa.co.za]
> Sent: Friday, December 01, 2000 12:34 AM
> To: AS400 Listserv (E-mail)
> Subject: OO in RPG
> 
> 
> Does anyone have any ideas (Brad Stone, Joe Pulta, Hans 
> Boldt) how to write
> RPG code in a way that simulates an Object Orientated approach?
> 
> TIA
> 
> Alistair Rooney
> Software Engineer
> Tibbett & Britten Africa
> +27 31 2047701
> 
> A lottery is just a tax on people who are bad at math
> 
> 
> 
> 
> 
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.