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



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