ACCESS-CONTROL FOR PRIVATE DECLARATIONS IN ADA

被引:0
|
作者
SHEN, J [1 ]
CORMACK, GV [1 ]
机构
[1] UNIV WATERLOO,DEPT COMP SCI,WATERLOO N2L 3G1,ONTARIO,CANADA
来源
COMPUTER LANGUAGES | 1994年 / 20卷 / 02期
关键词
PROGRAMMING LANGUAGE DESIGN; ADA; INFORMATION HIDING; ACCESS CONTROL;
D O I
10.1016/0096-0551(94)90018-3
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In Ada, private declarations are either totally public or totally opaque. In many circumstances, it is necessary to selectively export some private operations or certain aspects of the hidden representation to some privileged modules. In this paper, we present a mechanism in Ada to gain the access control of private declarations. It is similar to the friend mechanism in C + +, and needs no extension to current Ada.
引用
收藏
页码:117 / 126
页数:10
相关论文
共 50 条