Extrinsic FunctionsΒΆ
Material prepared from M Programming Book [WALTERS1997]
Page 197-198
SET DEF=$$MYFUNC(X)
MYFUNC(X) NEW F SET F=X*(X+1) QUIT F
Entrinsic Functions:
Definition: They are a subroutine that another M routine can invoke to return a value.
These functions are not included in the standard. They have been supplied by the user, system, M subroutines, or external to the current M environment.
The Format is
$$[label][^routinename]([expr|.lname[,...]])
The extrinsic function must terminate with an explicit QUIT command which has an argument. M returns the falue of the QUIT command argument.