12.07.2015 Views

Programmer's Guide & Language Reference - Dyalog Limited

Programmer's Guide & Language Reference - Dyalog Limited

Programmer's Guide & Language Reference - Dyalog Limited

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

NamespacesChapter 1: Introduction 2Namespace is a (class 9) object in <strong>Dyalog</strong> APL. Namespaces are analogous to nestedworkspaces.'Flat' APL Workspace Workspace with Namespaces.OLD-------------------. .NEW-------------------.| | | FOO MAT VEC || DISPLAY | | .Util----------. || | | |DISPLAY | || FOO MAT VEC | | |... | || | | '--------------' || WsDoc_Init | | .WsDoc-------------. || WsDoc_Xref | | |Init .prt-..fmt--.| || WsDoc_Tree | | | |Init||line || || WsDoc_prt_init | | |Tree | || || || WsDoc_current_page | | |Xref |page|| || || ... | | | '----''-----'| || | | '------------------' |'----------------------' '----------------------'They provide the same sort of facility for workspaces as directories do for filesystems.The analogy might prove helpful:Operation MS-DOS NamespaceCreate MKDIR"apl""<strong>Dyalog</strong>" )NS or ⎕NSChange CD )CS or ⎕CSRelative name DIR1\DIR2\FILE NS1.NS2.OBJAbsolute name \DIR\FILE #.NS.OBJName separator \ .Top (root) object \ #Parent object .. ##

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!