MAINSAIL Language Manual, Section 40.7

previous   next   top   contents   index   framed top   this page unframed


40.7. lDisplacement

Figure 40–6. lDisplacement (GENERIC)
$BUILTIN
LONG INTEGER
PROCEDURE   lDisplacement
                        (
ADDRESS a,b);

$BUILTIN
LONG INTEGER
PROCEDURE   lDisplacement
                        (
CHARADR a,b);

lDisplacement computes the distance between two ADDRESSes or CHARADRs.

The ADDRESS form returns the number of storage units from the ADDRESS a to the ADDRESS b.

The CHARADR form returns the number of character units from the CHARADR a to the CHARADR b.

If a is beyond b, the result is negative.

A garbage collection cannot occur during a call to lDisplacement.


previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 40.7