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



On 10/27/2010 3:34 PM, Dan Kimmel wrote:
I don't think you need it in C. RPG doesn't handle java objects very
well. The RPG program retains a reference to the object such that the
garbage collecter can't clear it from memory. C can play around with
the object without hanging on to a reference.


Sorry, this is pure poppycock. C and RPG both interact with Java using the same API, the JNI API. Object cleanup is handled in exactly the same way between the two languages.

Object cleanup is the same. The calls to the API are also the same. The only difference is that the RPG compiler has built-in support to generate those API calls for you based on prototypes you write, instead of you having to code it all yourself. So for calling methods, RPG is easier than C, even though they result in the same code from Java's perspective.

But, from the object cleanup perspective, the two languages are identical.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.