Pointers

A pointer may refer to no object, or be null. If an object is deleted or destroyed, all FISH symbols that point to that object will be set to null. You can use the intrinsic variable null to test for null pointer values.

FISH pointer objects are typed, and the type is available with the intrinsic type.pointer. This function returns a string identifying the object pointed to. A partial list of available types follows:


name object pointed to
null null pointer
memitem pointer to block of allocated FISH memory
array array of FISH parameters
range stored named range
table table of values

The only arithmetic operator available to pointers is the + operator, and this can only be used with memitem pointers (see Memory Utilities section of FISH Reference).

The type specifiers used in the FISH function signatures are given in the FISH Type Index section, including a number of pointer specifiers.