|
> From: Scott Klement > > The way that you call Java classes (which are OO) from RPG is to always > pass the object as the first parameter... > > Seems logical that you'd do it the same way in RPG as well.... This is in fact how all OO languages actually do it, and how we did it back in the pre-OO days. We wrote object-based applications in C back in the 80s, and to do it we created "handles", which were nothing more than VOID pointers. The calling program had no idea what the pointer pointed to, but the called procedure used it as a pointer to the structure which held the "instance data" for the "object". None of this is exactly rocket science and back in the old days a decent CS teacher would explain that to you. Nowadays people look at the JVM like its some sort of magic kingdom where the laws of physics no longer apply, but the truth is it's just more code. Joe
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.