ACM Home Page
Please provide us with feedback. Feedback
Namespaces: APL/W vs. APL2
Full text PdfPdf (1.08 MB)
Source International Conference on APL archive
Proceedings of the international conference on Applied programming languages table of contents
San Antonio, Texas, United States
Pages: 193 - 205  
Year of Publication: 1995
ISBN:0-89791-722-7
Also published in ...
Author
Rexford H. Swain  Independent Consultant, 8 South Street, Washington, CT
Sponsor
SIGAPL: ACM Special Interest Group on APL Programming Language
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 7,   Downloads (12 Months): 11,   Citation Count: 1
Additional Information:

abstract   references   cited by   index terms  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/206913.207005
What is a DOI?

ABSTRACT

This paper describes and contrasts the implementation of namespaces in two popular combinations of APL dialects and platforms: IBM's APL2 (version 2, release 2) running under VM/CMS, and Dyadic's Dyalog APL/W (version 7.0) running under Microsoft Windows.In a traditional APL workspace, localization is the only mechanism available to isolate identifier names and values, and it is extremely potent. While a function that localizes a given name is executing, it is impossible to reference any other definition of the same name.Namespaces are a significant addition to an APL system. They provide a way to “package” a collection of objects (variables, defined functions, etc.), and insulate them from the traditional workspace. A namespace co-exists with the workspace, yet its object names and definitions are completely independent of the workspace. Namespaces can help to organize and hide complexity in workspaces, avoid name conflicts, and share code among applications.IBM has offered namespaces in APL2 since 1987, whereas Dyadic just recently introduced their facility. Both implementations provide encapsulation and name isolation within a workspace. But they use quite different methods to access objects in a namespace and store their initial definitions. The merits of each approach are discussed. An example is provided to illustrate how namespaces may be used to simplify the implementation and improve the functionality of workspace and function analysis tools.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

 
1
Dyalog APL for Windows {version 7.0}, Language Reference, Dyadic Systems Limited, 1994.
 
2
APL2 Programming: System Services Reference, Version 2 Release 2, IBM publication number SH21-1054-01, 1994.