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.