Maybe as Javascript makes its presence felt on the server side we'll see
it on IBM i - but it won't be an ILE language it
just wouldn't fit the architecture.

Which I do not understand. Objects in a garbage collection system don't
contain a reference count. But the system at garbage collection time walks
the call stack to find all the existing references to objects. Objects
which do not have any references are then garbage collected. So each
invocation of an ILE procedure would contain a list of references to java
or javascript objects that were set during the running of the procedure.
Pretty much the same way I assume Java works when it invokes a Java
function.

And the java or javascipt object could be accessed from RPG for read only
access. Maybe by calling a "ToNative" method on the object to get direct
access to the objects contents in the form of an RPG variable.

Or simply use the current mechanism by which RPG interops with Java.

What I don't follow is why the ILE call stack can't be broadened to include
an RPG ILE procedure calling a Java function. That is, if such a call is
currently done outside of the ILE call stack.

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.