System Command EDIT

From NARS2000
Revision as of 06:39, 13 March 2013 by Paul Robinson (talk | contribs)
Jump to navigationJump to search

The )EDIT command is used to edit an APL function. There are two forms:

)EDIT

and

)EDIT function

(or)

)EDIT leftarg←function rightarg;local1;local2 etc.

where function is the name of the function to edit. If the function exists, an edit window will be opened and the function will be shown in the window. If the function does not exist, a new edit window will open with an empty function other than the function name on line 0.

Function names, like variables, are case sensitive. PI, Pi, pI, and pi are four different identifiers.

If )EDIT is used with no function name specified, a new edit window will open and a blank line 0 will be presented. The function header can be typed in to this window on this line (without using the prefix del () symbol.) Note that to close the edit window, you type Control-D, do not place the symbol on the function header or use it to attempt to close the function; this will result in an error when the function is executed.

The )EDIT command is treated exactly as the symbol, a used alone opens a blank window to edit a new function, followed by the name of a function opens a window containing the existing function for editing, or opens a new window to define the contents of the function.

A new function may be defined via the )EDIT function or the symbol, so that

)EDIT z←function5 r;⎕IO

or

∇ z←function5 r;⎕IO

Are identical. Note that arguments are ignored on the )EDIT or symbol if the function is already defined; if you want to change the function header of an already defined function, you must edit it directly.


System Commands (not case sensitive)
)CLEAR )CLOSE )COPY )DROP )EDIT )ERASE )EXIT )FNS )FOP )FOPS
)IN )INASCII )LIB )LOAD )NEWTAB )NMS )OFF )OPEN )OPS )OUT
)RESET )SAVE )SI )SIC )SINL )SYMB )ULIB )VARS )XLOAD )WSID