Implemented for Internal, External and System classes.
integer ← objref.⎕HANDLE
integer ← classref.⎕HANDLE
integer ← ⎕HANDLE (Within user-defined method, same as
For External and System classes,
⎕HANDLE returns an integer containing a reference to a class or object, as seen by the external sub-system. For Internal classes it always returns zero. It is used for advanced low-level programming.
Depending on the external architecture, this handle can be used when you need to pass an object reference to custom low-level (non-APL) code, or use
⎕NA to call an external library routine. The meaning of the value returned is as follows:
||Integer representing a GCHandle for the object
||Result of NewGlobalRef call to the JVM
||The Ruby VALUE of the object, cast to an integer