9.3.86 LOC (X)

Description:  Returns the internal address of a storage item.[1] 
Class:  Inquiry function; Generic 
Arguments:  X is a variable, an array or record field reference, a procedure, or a constant; it can be of any data type. It must not be the name of an internal procedure or statement function. If it is a pointer, it must be defined and associated with a target.  
Results:  The result type is INTEGER(4) on Intel processors; INTEGER(8) on Alpha processors. The value of the result represents the address of the data object or, in the case of pointers, the address of its associated target. If the argument is not valid, the result is undefined.

On OpenVMS systems, in the case of global symbolic constants, LOC returns the value of the constant rather than an address.

This function serves the same purpose as the %LOC built-in function. 

[1] This specific function cannot be passed as an actual argument.

Previous Page Next Page Table of Contents