nvec ← ##.nc names ⍝ Extended ⎕NC for objects named in ⍵. <V>
Supplied by David Crossley, nc takes a list of names (character scalar, vector,
matrix) and returns a numeric vector of extended name classifications:
NB: In Dyalog V11.0 and above, extended ⎕NC gives similar information directly.
Special:
¯1: invalid name
0: unused
1: label
Variable:
20: normal
21: ⎕or
Function:
30: traditional "header-style" function.
31: locked .. .. ..
32: assigned
33: dynamic
34: external
Operator:
40: traditional "header-style" operator.
41: locked .. .. ..
43: dynamic
Namespace:
90: Non-GUI namespace
91: GUI object
92: Ref to non-GUI namespace
93: Ref to GUI object
For the purposes of this function, a "Ref" in the last category is deemed to be
a space whose name is distinct from its display form.
Examples:
⍝ Extended class of:
nc'nc' ⍝ Dfn
33
nc ⎕fx'trad' 'fn' ⍝ TradFn
30
nc↑'notes' 'scripts' ⍝ Space
90 90
xx yy←notes scripts ⍝ synonyms
nc↑'xx' 'yy' ⍝ "Refs".
92 92
nc'fooey' ⍝ unused.
0
See also: ncpath
Back to: contents
Back to: Workspaces
Trouble seeing APL font?