System Function EX: Difference between revisions
From NARS2000
Jump to navigationJump to search
(Create monadic System Function Quad EX (EXpunge object)) |
No edit summary |
||
Line 6: | Line 6: | ||
{{BoxEnd|<apll>Z</apll> is a scalar number, usually 1. '''1''' means '''success''', object was '''deleted'''. 0 means failed, object not deleted.}} | {{BoxEnd|<apll>Z</apll> is a scalar number, usually 1. '''1''' means '''success''', object was '''deleted'''. 0 means failed, object not deleted.}} | ||
<p>Monadic function ⎕EX behaves much the same as described in the Extended APL Standard.</p> | <p>Monadic function <apll>⎕EX</apll> behaves much the same as described in the Extended APL Standard.</p> | ||
<p>The following deletes variable '''X''' from the workspace:</p> | <p>The following deletes variable '''X''' from the workspace:</p> | ||
< | <pre> | ||
X←45 99 | |||
1 | ⎕EX 'X' | ||
</ | 1 | ||
One important difference between | </pre> | ||
One important difference between <apll>⎕EX</apll> and <apll>)ERASE</apll> is: <apll>⎕EX</apll> can be used inside a ''user function''.<br> | |||
See also: [[System_Command_ERASE|)ERASE]] | See also: [[System_Command_ERASE|)ERASE]] | ||
{{System Variables}} | {{System Variables}} |
Latest revision as of 00:08, 16 April 2018
⎕EX function available in monadic form.
Monadic Function
|
||||
R is a character scalar or vector (function or variable name string). | ||||
Z is a scalar number, usually 1. 1 means success, object was deleted. 0 means failed, object not deleted. |
Monadic function ⎕EX behaves much the same as described in the Extended APL Standard.
The following deletes variable X from the workspace:
X←45 99 ⎕EX 'X' 1
One important difference between ⎕EX and )ERASE is: ⎕EX can be used inside a user function.
See also: )ERASE
System Variables (A value may be assigned to these except for ⎕DM) | |||||||||
---|---|---|---|---|---|---|---|---|---|
⎕ALX | ⎕CT | ⎕DM | ⎕DT | ⎕ELX | ⎕FC | ⎕FEATURE | ⎕FPC | ⎕IC | ⎕IO |
⎕LR | ⎕LX | ⎕PP | ⎕PR | ⎕PW | ⎕RL | ⎕SA | ⎕WSID | ||
Niladic System Functions (a value cannot be assigned to these) | |||||||||
⎕A | ⎕AV | ⎕EM | ⎕ET | ⎕LC | ⎕NNAMES | ⎕NNUMS | ⎕SI | ⎕SYSID | ⎕SYSVER |
⎕T | ⎕TC | ⎕TCBEL | ⎕TCBS | ⎕TCESC | ⎕TCFF | ⎕TCHT | ⎕TCLF | ⎕TCNL | ⎕TCNUL |
⎕TS | ⎕WA | ||||||||
Monadic or dyadic system functions (a value cannot be assigned to these) | |||||||||
⎕AT | ⎕CR | ⎕DC | ⎕DFT | ⎕DL | ⎕DR | ⎕EA | ⎕EC | ⎕ERROR | ⎕ES |
⎕EX | ⎕FMT | ⎕FX | ⎕MF | ⎕NAPPEND | ⎕NC | ⎕NCREATE | ⎕NERASE | ⎕NINFO | ⎕NL |
⎕NLOCK | ⎕NREAD | ⎕NRENAME | ⎕NREPLACE | ⎕NRESIZE | ⎕NSIZE | ⎕NTIE | ⎕NUNTIE | ⎕STOP | ⎕TF |
⎕TRACE | ⎕UCS | ⎕VR | |||||||
Note that quad functions and variables (except for the ⎕A family of functions) are case insensitive |