List Loaded File Objects Rβ5177βΆY
The editor may be used to edit Dyalog script files (.dyalog files) and general text files and to save the contents in the workspace. Additionally βFIX can be used to fix scripts held in files. This I-Beam returns details about all of the objects in the workspace that are associated with such files.
Y must be an empty array.
R is a vector of 8-element vectors, one vector per object in the workspace that is associated with a file.
| Element | Contains |
|---|---|
| 1 | Object name or ref (refs are returned for all types of namespace) |
| 2 | Parent namespace |
| 3 | Name class (see βNC ) |
| 4 | File name |
| 5 | Start line (first line in file, 0 origin, of the object) |
| 6 | Line count (number of lines in file occupied by the object) |
| 7 | File Checksum |
| 8 | File modification time ( βTS format) |
If an object occupies a file in its entirety, both Start line and Line count will be 0.
Examples
)CLEAR
clear ws
β5177βΆβ¬
ββ¬βββββββ¬ββ¬β¬ββ¬ββ¬βββββββββ¬ββββββββββββββ
ββ[Null]β0ββ0β0β β0 0 0 0 0 0 0β
ββ΄βββββββ΄ββ΄β΄ββ΄ββ΄βββββββββ΄ββββββββββββββ
dyalogβ2 βNQ '.' 'GetEnvironment' 'DYALOG'
aeditβ'/SALT/spice/aedit.dyalog'
β’βFIX 'file://',dyalog,aedit
#.arrayeditor
1 1 1 0 1 1 1 1/β5177βΆβ¬ βremove file names for brevity
βββββββββββββββ¬ββββββββββββββ¬ββ¬βββ¬βββ¬βββββββββ¬βββββββββββββββββββ
βRun β#.arrayeditorβ3β38β4 β008fe4edβ2018 5 11 8 5 10 0β
βββββββββββββββΌββββββββββββββΌββΌβββΌβββΌβββββββββΌβββββββββββββββββββ€
βHelp β#.arrayeditorβ3β28β9 β008fe4edβ2018 5 11 8 5 10 0β
βββββββββββββββΌββββββββββββββΌββΌβββΌβββΌβββββββββΌβββββββββββββββββββ€
βList β#.arrayeditorβ3β22β5 β008fe4edβ2018 5 11 8 5 10 0β
βββββββββββββββΌββββββββββββββΌββΌβββΌβββΌβββββββββΌβββββββββββββββββββ€
βDESC β#.arrayeditorβ3β10β11β008fe4edβ2018 5 11 8 5 10 0β
βββββββββββββββΌββββββββββββββΌββΌβββΌβββΌβββββββββΌβββββββββββββββββββ€
β#.arrayeditorβ# β9β0 β0 β008fe4edβ2018 5 11 8 5 10 0β
βββββββββββββββ΄ββββββββββββββ΄ββ΄βββ΄βββ΄βββββββββ΄βββββββββββββββββββ