-
Notifications
You must be signed in to change notification settings - Fork 12
Link.Fix
Morten Kromberg edited this page May 9, 2019
·
3 revisions
This function is intended as a replacement for ⎕FIX
or ⎕FX
in code which manipulates linked namespaces. It will allow you to add
or modify a function, operator, or scripted object within a linked namespace, creating or updating the correponding source file.
Note: If the item has already been updated or created and you only need to update the source file, you can also use Add.
When an item is edited, a call is made to this function by the APL interpreter.
- A vector of character vectors representing the source code of the item to be defined
The left argument is a two or three element vector:
- namespace: The namespace within which the object shall be fixed. Normally, one can use
⎕FIX
or⎕FX
inside the target namespace, e.g.myns.⎕FIX 'avg←{sum←+⌿⍵' 'sum÷≢⍵}'
but sinceLink.Fix
exists only as⎕SE.Link.Fix
then the target namespace must be explicitly specified. - name: The name of the object being defined
- oldname: The old name of the object, if this operation is a rename
- 1 if the object was found to be in a linked namespace, else 0
Quick links: Introduction Installation Wiki home Email us